From 8fc1e2dea0834e4f194f2c77040e0ba9031e5b9d Mon Sep 17 00:00:00 2001 From: Trevor Parscal Date: Thu, 19 Mar 2015 15:52:43 -0700 Subject: [PATCH] TransclusionDialog: Initialize label mode button Because the mode label is set after measurements of the foot are made, the body of a ProcessDialog was set to overlap the foot. At some point T93290 will be fixed, but in the mean time we can solve this problem by setting an   initially. Bug: T92986 Change-Id: I995d5ecd81b86ee188cf237f74487ec70480e297 --- modules/ve-mw/ui/dialogs/ve.ui.MWTransclusionDialog.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/ve-mw/ui/dialogs/ve.ui.MWTransclusionDialog.js b/modules/ve-mw/ui/dialogs/ve.ui.MWTransclusionDialog.js index 303db807b5..3ec265059f 100644 --- a/modules/ve-mw/ui/dialogs/ve.ui.MWTransclusionDialog.js +++ b/modules/ve-mw/ui/dialogs/ve.ui.MWTransclusionDialog.js @@ -36,7 +36,10 @@ ve.ui.MWTransclusionDialog.static.title = ve.ui.MWTransclusionDialog.static.actions = ve.ui.MWTemplateDialog.static.actions.concat( [ { action: 'mode', - modes: [ 'edit', 'insert' ] + modes: [ 'edit', 'insert' ], + // HACK: Will be set later, but we want measurements to be accurate in the mean time, this + // will not be needed when T93290 is resolved + label: $( document.createTextNode( ' ' ) ) } ] );