-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add API to set position to a dialog and sync values on user interaction #1173
Comments
See also vaadin/vaadin-dialog-flow#138 for a feature request for similar API that also includes an example code. |
If there is someone who cannot wait until the "set a specific position for a dialog" feature is released, here is a workaround:
And custom-styles.css:
|
Another workaround could be
to change the position directly. |
@SebastianKuehnau Thanks, nice workaround! Do you have an idea for a getter as well?
but since executeJs runs in a separate thread and returns only a PendingJavaScriptResult the result value cannot simply be returned from a getter. |
please try this:
|
Even if the workaround can help, this feature would be much more comfortable to use with an API. |
What is the state of this issue? When will Dialog positioning be possible? |
Any news ? Need for vaadin 23+. |
After (https://github.com/vaadin/vaadin-dialog/issues/145), flow component should add API to allow setting the overlay position.
Also, the component should sync the position value, at least in two cases:
setDraggable
is set totrue
and a dialog is dragged by the usersetResizable
is set totrue
and a dialog is resized by the user (the reason is that when a resize happens, the dialog defines the top/left position).The text was updated successfully, but these errors were encountered: