question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature Request : Dialog Alignment

See original GitHub issue

I use DialogHost in my SukiUI library to show dialogs, and by the way thank you for you work 👍 Recently I made some Mobile Controls which requires to show a dialog at the bottom :

https://github.com/kikipoulet/SukiUI/wiki/3.-Mobile-Controls#mobile-picker

To make that I used some very ugly code in a very ugly fork to create a new parameter and simply show the dialog at bottom with this code change :

var verticalMargin = (parameters.AnchorRectangle.Height - parameters.Size.Height) / 1.05;

in the DialogPopupPositioner class. The problem is that it messed up all my dependencies with avalonia 0.10 to 0.11 migration, and the only solution for me was to come at the DialogHost 0.6.0 nuget package, which basically saved me 👍

So … could it be possible to add a “VerticalAlignment” parameter in the dialoghost control ? 😃

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
SKProCHcommented, Nov 22, 2022

It is marked as preview version now, cuz i want to implement some features.

1reaction
SKProCHcommented, Nov 19, 2022

Hello, @kikipoulet

It’s quite a complex task, as far as I can see. Because, for example, your dialog is at least not straight down, it has a vertical indent from the bottom. I’ll think about how to implement it better.

For now, I’m thinking about the idea of allowing you to create your own Positioner

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Feature Request] [Enhancement] [dialog] Vertically ...
Currently the dialog supports a center attribute which centers the content inside the dialog. But I would like to be able to have...
Read more >
Feature request: Align to center for objects and canvas
For example, the center of a 1000px x 1000px artboard has coordinates: x0,y0. I want to create 4 100px x 200px rectangles whose...
Read more >
Feature request: minimal Align and Distribute dialog. (#6929)
While working on inkscape I often need to align some objects. However, the current Align and Distribute dialog is rather large as it...
Read more >
Feature Request: Advanced Alignment Options - Page 2
Re: Feature Request: Advanced Alignment Options. I think the current options are great, as is the alignment dialog used to deploy them.
Read more >
Feature Request: show orientation in attachment dialog
The user is attempting to align a sketch, most likely to another sketch or some feature on a model. The axes, while being...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found