Page MenuHomePhabricator

Flow: Moderation dialog positioning
Closed, ResolvedPublic

Description

screenshot from clicking the topmost actionmenu

When I click the "Hide" or "Delete" moderation links, the dialogs pop-up more than halfway down the page.

They should appear close to the action-menu that requested them.

However, they must avoid placing the "[cancel / save]" buttons directly underneath (the link that triggered them), to avoid accidental double-click problems.

Note: this will all vary by screensize/windowsize.
Jay8g says: "The hide and unhide boxes always appear awkwardly in the lower right hand corner of the screen, not the center."

(semi-related see also: Bug 60196 "moderation dialog popup does not contain cursor automatically")


Version: unspecified
Severity: normal

Attached:

Screenshot_from_2014-07-07_16:08:39.png (1×1 px, 109 KB)

Details

Reference
bz67638

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:42 AM
bzimport set Reference to bz67638.

This is due to the use of jquery.ui dialogs. The replacement of jquery.ui dialogs in flow is tracked at https://trello.com/c/OLnPx7M4/331-g-11-spike-build-modal-dialog-box-for-hide-delete-suppress

We replaced jquery.ui dialogs with mw-ui.modal.js which reliably centers on the page.