Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions articles/components/dialog/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,37 @@

Modal dialogs don't benefit from being draggable, as their modality curtain (the dark overlay behind the dialog) obscures the underlying user interface.

By default, the edges of dialogs can be dragged outside the viewport, which can make parts of a dialog inaccessible. To prevent this, set the `keepInViewport` property to `true` to keep the dialog fully within the viewport when dragging. Note that this option only affects the dialog's position when dragging, a dialog may still become partially invisible when resizing the viewport.

Check failure on line 260 in articles/components/dialog/index.adoc

View workflow job for this annotation

GitHub Actions / lint

[vale] reported by reviewdog 🐶 [Vale.Spelling] Did you really mean 'dialog's'? Raw Output: {"message": "[Vale.Spelling] Did you really mean 'dialog's'?", "location": {"path": "articles/components/dialog/index.adoc", "range": {"start": {"line": 260, "column": 278}}}, "severity": "ERROR"}

[.example]
--

ifdef::lit[]
[source,html]
----
<source-info group="Lit"></source-info>
<vaadin-dialog keep-in-viewport>...</vaadin-dialog>
----
endif::[]

ifdef::flow[]
[source,java]
----
<source-info group="Flow"></source-info>
Dialog dialog = new Dialog();
dialog.setKeepInViewport(true);
----
endif::[]

ifdef::react[]
[source,html]
----
<source-info group="React"></source-info>
<Dialog keepInViewport>...</Dialog>
----
endif::[]
--


== Size

Expand Down