Bug 1375013 - Fix stub footer text for RTL locales, and adjust width to prevent running over logo image. r=rstrong

MozReview-Commit-ID: 7UyK9SKV17D

--HG--
extra : rebase_source : 57f534c27b2586d67d4f646727c5255564f68ffd
This commit is contained in:
Matt Howell 2017-06-22 15:18:52 -07:00
Родитель 30d25bb0d7
Коммит d9e72ebb54
2 изменённых файлов: 12 добавлений и 10 удалений

Просмотреть файл

@ -128,7 +128,7 @@ VIAddVersionKey "ProductVersion" "${AppVersion}"
!define NOW_INSTALLING_TOP_DU 70u
!define INSTALL_BLURB_TOP_DU 137u
!define INSTALL_FOOTER_TOP_DU -48u
!define INSTALL_FOOTER_WIDTH_DU 300u
!define INSTALL_FOOTER_WIDTH_DU 250u
!define PROGRESS_BAR_TOP_DU 112u
!define APPNAME_BMP_EDGE_DU 19u
!define APPNAME_BMP_TOP_DU 12u

Просмотреть файл

@ -833,15 +833,17 @@ Function createInstall
; In some locales, the footer message may be too long to fit on one line.
; Figure out how much height it needs and give it that much.
${GetTextExtent} "$(STUB_BLURB_FOOTER)" $FontFooter $R1 $R2
StrCpy $1 0
${While} $R1 > 0
IntOp $1 $1 + $R2
IntOp $R1 $R1 - ${INSTALL_FOOTER_WIDTH_DU}
${EndWhile}
nsDialogs::CreateControl STATIC ${DEFAULT_STYLES}|${SS_NOTIFY}|${SS_RIGHT} \
${WS_EX_TRANSPARENT} -320u ${INSTALL_FOOTER_TOP_DU} \
${INSTALL_FOOTER_WIDTH_DU} "$1u" "$(STUB_BLURB_FOOTER)"
${GetTextWidthHeight} "$(STUB_BLURB_FOOTER)" $FontFooter \
${INSTALL_FOOTER_WIDTH_DU} $R1 $R2
!ifdef ${AB_CD}_rtl
nsDialogs::CreateControl STATIC ${DEFAULT_STYLES}|${SS_NOTIFY} \
${WS_EX_TRANSPARENT} 30u ${INSTALL_FOOTER_TOP_DU} ${INSTALL_FOOTER_WIDTH_DU} "$R2u" \
"$(STUB_BLURB_FOOTER)"
!else
nsDialogs::CreateControl STATIC ${DEFAULT_STYLES}|${SS_NOTIFY}|${SS_RIGHT} \
${WS_EX_TRANSPARENT} 175u ${INSTALL_FOOTER_TOP_DU} ${INSTALL_FOOTER_WIDTH_DU} "$R2u" \
"$(STUB_BLURB_FOOTER)"
!endif
Pop $0
SendMessage $0 ${WM_SETFONT} $FontFooter 0
SetCtlColors $0 ${INSTALL_BLURB_TEXT_COLOR} transparent