-
Notifications
You must be signed in to change notification settings - Fork 83
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
[dialog] Add APIs to set position and dimension #1060
Comments
Hope to see this feature in next release. |
When will this feature available ? |
|
It is possible to set the position using JavaScript, example is found here |
One problem with that is that the dragging of the dialog element can behave unexpectedly if the size is not set on drag. Take, for instance, the example in the dialog-overlay-size.mp4We set If, however, we add a container to the content elements and define a size for this container instead of the root element: const container = document.createElement('div');
container.style.maxWidth = '40em';
container.style.minWidth = '20em';
root.appendChild(container);
// Add elements to `container`
// ... dialog-content-size.mp4Then, the dragging will occur as expected with the change in the element shrinking when it moves to the right edge until it reaches its size limit. |
Closed as complete via #7970, #7971, #8030, #8047, vaadin/flow-components#6782, vaadin/flow-components#6783, and vaadin/flow-components#6784. |
Developer could be able to set the coordinates (top, left) and dimension (width, height) of the overlay.
Two things that could be part of this:
draggable
event after dragging is doneresize
event to add thetop
andleft
positions to its detail data (the reason is that so, dialog flow could sync these values on resize)The text was updated successfully, but these errors were encountered: