Opened 14 years ago

Closed 14 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 bill)

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 14 years ago by bill

Description: modified (diff)

comment:2 Changed 14 years ago by dante

Milestone: 1.31.2
Owner: changed from bill to dante
Status: newassigned

comment:3 Changed 14 years ago by bill

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"

comment:4 Changed 14 years ago by bill

Resolution: fixed
Status: assignedclosed

(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.