Bug 1376489 - Allow stub installer header text to use the full window width. r?rstrong
MozReview-Commit-ID: L5OdDqdS12e
--- a/browser/installer/windows/nsis/stub.nsi
+++ b/browser/installer/windows/nsis/stub.nsi
@@ -814,17 +814,19 @@ Function createInstall
SetCtlColors $Dialog ${COMMON_TEXT_COLOR_NORMAL} ${COMMON_BKGRD_COLOR}
FindWindow $7 "#32770" "" $HWNDPARENT
${GetDlgItemWidthHeight} $HWNDPARENT $8 $9
; Resize the Dialog to fill the entire window
System::Call 'user32::MoveWindow(i$Dialog,i0,i0,i $8,i $9,i0)'
- ${NSD_CreateLabelCenter} 25% ${NOW_INSTALLING_TOP_DU} 50% 47u "$(STUB_INSTALLING_LABEL)"
+ ; The header string may need more than half the width of the window, but it's
+ ; currently not close to needing multiple lines in any localization.
+ ${NSD_CreateLabelCenter} 0% ${NOW_INSTALLING_TOP_DU} 100% 47u "$(STUB_INSTALLING_LABEL)"
Pop $0
SendMessage $0 ${WM_SETFONT} $FontInstalling 0
SetCtlColors $0 ${INSTALL_BLURB_TEXT_COLOR} transparent
${NSD_CreateLabelCenter} 0% ${INSTALL_BLURB_TOP_DU} 100% 60u "$(STUB_BLURB1)"
Pop $LabelBlurb
SendMessage $LabelBlurb ${WM_SETFONT} $FontBlurb 0
SetCtlColors $LabelBlurb ${INSTALL_BLURB_TEXT_COLOR} transparent