Bartosz Dziewoński has uploaded a new change for review. https://gerrit.wikimedia.org/r/175503
Change subject: MessageDialog: Fit actions after updating window size, not before ...................................................................... MessageDialog: Fit actions after updating window size, not before Also, always call #updateWindowSize, because we don't re-fit actions on window resize (T75783). Bug: T75376 Change-Id: Icf9e3d0f56c4c3302bb83bfaa3707073bda2381c --- M src/dialogs/MessageDialog.js 1 file changed, 2 insertions(+), 3 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/oojs/ui refs/changes/03/175503/1 diff --git a/src/dialogs/MessageDialog.js b/src/dialogs/MessageDialog.js index 072535b..3070609 100644 --- a/src/dialogs/MessageDialog.js +++ b/src/dialogs/MessageDialog.js @@ -194,10 +194,9 @@ special.primary.toggleFramed( false ); } + this.manager.updateWindowSize( this ); this.fitActions(); - if ( !this.isOpening() ) { - this.manager.updateWindowSize( this ); - } + this.$body.css( 'bottom', this.$foot.outerHeight( true ) ); }; -- To view, visit https://gerrit.wikimedia.org/r/175503 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Icf9e3d0f56c4c3302bb83bfaa3707073bda2381c Gerrit-PatchSet: 1 Gerrit-Project: oojs/ui Gerrit-Branch: master Gerrit-Owner: Bartosz Dziewoński <matma....@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits