Page MenuHomePhabricator

MessageDialog#fitActions doesn't work on Firefox when some of the actions are hidden
Closed, ResolvedPublic

Description

As reported by @sladen at T135808, MessageDialog#fitActions always arranges the action buttons vertically on Firefox, even if there is enough space to arrange them horizontally, when some of the actions are hidden (e.g. due to a mode on the ActionSet that disallows them). The hidden actions are incorrectly not being ignored when measuring dimensions and for some reason the action.$element.innerWidth() < action.$label.outerWidth( true ) check passes on Firefox (in Chrome it does not, and this problem doesn't appear).

Event Timeline

Change 771382 had a related patch set uploaded (by Esanders; author: Esanders):

[oojs/ui@master] Use flexbox for MessageDialog horizontal layout

https://gerrit.wikimedia.org/r/771382

Change 771382 merged by jenkins-bot:

[oojs/ui@master] Use flexbox for MessageDialog horizontal layout

https://gerrit.wikimedia.org/r/771382

Change 792684 had a related patch set uploaded (by Jforrester; author: Jforrester):

[mediawiki/core@master] Update OOUI to v0.44.0

https://gerrit.wikimedia.org/r/792684

Change 792684 merged by jenkins-bot:

[mediawiki/core@master] Update OOUI to v0.44.0

https://gerrit.wikimedia.org/r/792684

Volker_E edited projects, added OOUI (OOUI-0.44.0); removed OOUI.
Volker_E assigned this task to Esanders.

Test wiki on Patch demo by ESanders (WMF) using patch(es) linked to this task was deleted:

https://patchdemo.wmflabs.org/wikis/e6e4355895/w/