Opened 13 years ago
Closed 13 years ago
#6502 closed task (fixed)
Dialog: don't move dialog on page scroll (or window resize)
Reported by: | bill | Owned by: | dante |
---|---|---|---|
Priority: | high | Milestone: | 1.2 |
Component: | Dijit - LnF | Version: | 1.1.0 |
Keywords: | ibm | Cc: | |
Blocked By: | Blocking: |
Description (last modified by )
When user scrolls browser page (or resizes the window), don't re-center the Dialog. Make it stay constant w.r.t the viewport. Rationale: if the user has moved the dialog they probably want it to stay where they moved it.
There's some debate on what the best behavior for this is (see #4470), but this approach seems like the majority opinion.
Taken from phiggins' suggestion in #4470, as well as the IBM Design Leadership recommendations.
Change History (4)
comment:1 Changed 13 years ago by
Description: | modified (diff) |
---|
comment:2 Changed 13 years ago by
Milestone: | 1.3 → 1.2 |
---|---|
Owner: | changed from bill to dante |
Status: | new → assigned |
comment:3 Changed 13 years ago by
comment:4 Changed 13 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
(In [13355]) Enhance Dialog so:
- if the user has moved the dialog then don't recenter it on browser window resize or scroll. Rather, treat it as though it's position:fixed. (fixes #6502)
- add draggable initialization parameter, to (optionally) prevent dialogs from being dragged (fixes #6563)
Patch from Peter Higgins.
Note: See
TracTickets for help on using
tickets.
See also #6563. Dustin's alternate suggestion to "don't re-center on browser resize" is "don't re-center on browser resize *if* the user has dragged the dialog"