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
This commit is contained in:
Trevor Parscal 2015-03-19 15:52:43 -07:00 committed by Jforrester
parent 3f6d19a75d
commit 8fc1e2dea0

View file

@ -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( ' ' ) )
}
] );