Skip to content

Dialog draggable and resizable #2082

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

Closed
stevetsanders opened this issue Aug 11, 2020 · 2 comments
Closed

Dialog draggable and resizable #2082

stevetsanders opened this issue Aug 11, 2020 · 2 comments

Comments

@stevetsanders
Copy link

Is your feature request related to a problem? Please describe.
I want to be able to drag and resize a dialog.

Describe the solution you'd like
When my mouse is hovering over one of the corners of the dialog, I would like my mouse icon to change and indicate that I can resize the dialog. Once I click and drag the corner, I want the dialog to resize.

When my mouse is hovering over the header of the dialog, I would like my mouse icon to change and indicate that I can drag the dialog. Once I click and drag with my mouse, I want the dialog to move along with it.

Describe alternatives you've considered

Additional context
I believe this is already available functionality in the standard UI5 library. In order to achieve more feature parity, I think this would be an important step.

@ilhan007
Copy link
Member

ilhan007 commented Aug 12, 2020

Stories

(1) As a user, I would like to be able to resize the ui5-dialog by dragging the dialog bottom-right edge

API changes

  • New property "resizable": Defines whether the Dialog is resizable. If this property is set to true, the Dialog will have a resize handler in its bottom right corner.

Important: we enabled users to set dialog width and height via CSS (<ui5-dialog style="width: 100px; height:200px"), which contradicts with resizing in principle, that's why we should document that when "resizing" is enabled, the external width and height styling will be ignored.

(2) As a user, I would like to be able to drag the ui5-dialog and drop it later on by using the dialog header.

API changes

  • New property "draggable": Defines whether the Dialog is draggable by its header.
    Note: This property has a default value false. The Dialog can be draggable only in desktop mode.

General info

The interaction design should be the same as in classic UI5.
See https://openui5.hana.ondemand.com/entity/sap.m.Dialog/sample/sap.m.sample.Dialog

Assignment info

The item will be planned in Team Rodopi with Medium priority. It can be easily implemented as two separate issues.

@ilhan007
Copy link
Member

ilhan007 commented Oct 4, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants