Skip to content
This repository has been archived by the owner on Nov 19, 2020. It is now read-only.

Repositions modal dialogs on screen resize #1531

Closed
wants to merge 3 commits into from
Closed

Conversation

djsauble
Copy link
Contributor

@djsauble djsauble commented Jul 6, 2015

Ensures that modals stick to the center of the screen, improves consistency.

Before: http://take.ms/ViKjf
After: http://take.ms/max1G

  • Removes ‘x’ close icon from modal dialogs
  • Extends NX.view.ModalDialog instead of Ext.window.Window
  • Prevent modals from being resized
  • Give NuGetAPIKey modal proper padding with the nx-inset UI style

@kellyrob99
Copy link
Member

+1
Looks like we almost always override the dialog width, might want to minimally provide some constants for S/M/L dialogs rather than custom widths everywhere

@djsauble
Copy link
Contributor Author

djsauble commented Jul 6, 2015

Agreed. @mhorvat-sonatype, what were the standard widths you’ve settled on for Lifecycle?

@jdillon
Copy link
Contributor

jdillon commented Jul 7, 2015

+0 unsure why we care, adding a helper to reduce the modal config is good however. dont' care too much about resizing.

@djsauble
Copy link
Contributor Author

djsauble commented Jul 7, 2015

@jdillon It’s a consistency thing. If we center a dialog, it should remain centered until it’s closed.

Also, Lifecycle behaves this way, so it’s a win-win.

@mcculls
Copy link
Contributor

mcculls commented Jul 7, 2015

+1

@djsauble djsauble closed this in 527f34f Jul 7, 2015
@djsauble djsauble deleted the centered_modals branch July 7, 2015 14:43
@jdillon
Copy link
Contributor

jdillon commented Jul 7, 2015

it still odd ux, since the dialog is movable, it will change positions on resize. IIRC CLM dialogs are not movable, so works better for them. Though immovable dialogs is also pretty annoying.

@djsauble
Copy link
Contributor Author

djsauble commented Jul 7, 2015

@jdillon Hmmm… why do the dialogs need to be movable?

@djsauble
Copy link
Contributor Author

djsauble commented Jul 7, 2015

Centering change reverted per sprint review feedback.

b40b653

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
4 participants