Skip to content

Draggable dialog can be moved outside the window #3758

Open
@probert94

Description

@probert94

Describe your motivation

A draggable dialog gets an absolute position as soon as you drag it once. As soon as it has an absolute position, it is possible to resize the window so that the dialog is outside the window and thus invisible.

Describe the solution you'd like

The dialogs position should be limited to the window. So when I resize the window, the diaog should be moved with the window.

Describe alternatives you've considered

It is probably possible to register a window resize listener and manually correct the position of the dialog.

Additional context

In my case, the dialog is used to display a form for an item. To increase the performance, the dialog is only hidden (display: none), when it is closed and shown, when it is opened. Sometimes it happens, that the window is resized, while the dialog is closed (hidden). When it is reopened, it is outside the window and invisible to the user. Therefor it seems like it is not opening anymore.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions