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

docs: enhance dialog component documentation with positioning and sizing details #3946

Open
wants to merge 3 commits into
base: latest
Choose a base branch
from

Conversation

DiegoCardoso
Copy link
Contributor

Create new "Position" and "Size" sections and move "Draggable" and "Rezizable" sections to the corresponding ones.

Also add code snippets showing the new API for programmatically sizing and positioning.

@github-actions github-actions bot added the Language unchecked English language check has not been done label Nov 25, 2024
@DiegoCardoso DiegoCardoso marked this pull request as ready for review November 26, 2024 09:22
articles/components/dialog/index.adoc Outdated Show resolved Hide resolved
Comment on lines +204 to +207
Dialogs can be positioned in two ways:

. [since:com.vaadin:[email protected]]##By setting fixed coordinates programmatically##
. By allowing the user to drag them (see <<Draggable>>)
Copy link
Contributor

@vursen vursen Nov 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This gave me the impression that these two ways mutually exclude each other, but that's not the case, if I understand correctly. You can set the initial position using the top and left properties and still enable dragging, right? The same goes for resizing.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, both cases can work at the same time. I don't have the same impression, but I can be a bit biased. I can try to improve it to remove any misunderstanding.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Language unchecked English language check has not been done
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants