Skip to content
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

Keep overlay position after a resized dialog is opened again #1161

Open
DiegoCardoso opened this issue Mar 2, 2020 · 0 comments
Open

Keep overlay position after a resized dialog is opened again #1161

DiegoCardoso opened this issue Mar 2, 2020 · 0 comments
Labels
enhancement New feature or request vaadin-dialog

Comments

@DiegoCardoso
Copy link
Contributor

With vaadin/vaadin-dialog-flow#153, a dialog can be defined as resizable with dialog.setResizable(true).

Any resize to the overlay is synced so, if a resized dialog is closed and opened again, the size is preserved. But, the overlay position, on the other hand, is not preserved, which can bring a confusing behavior, as a resized dialog will be reopened aligned to the center of the page and not to its last position before being closed.

See the example below:

dialog-resize

@vaadin-bot vaadin-bot transferred this issue from vaadin/vaadin-dialog-flow Oct 6, 2020
@vaadin-bot vaadin-bot transferred this issue from vaadin/vaadin-dialog May 19, 2021
@vaadin-bot vaadin-bot added enhancement New feature or request vaadin-dialog labels May 21, 2021
@vaadin-bot vaadin-bot transferred this issue from vaadin/web-components May 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request vaadin-dialog
Projects
None yet
Development

No branches or pull requests

2 participants