Print Preview: Fix viewer zoom buttons in RTL
showOnLeft_ was updated to be computed based on whether the viewer was in Print Preview, which is set at construction rather than after retrieving strings from the backend. As a result, the document text direction was not yet set and the computation returned the wrong result. Instead, compute show on left one time when strings are set, since neither isPrintPreview nor the document direction should change while the viewer is open. Fixed: 1017081 Change-Id: I849af87b361d889f1655d9d2bdb04b16fcffe454 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1877816Reviewed-by:Demetrios Papadopoulos <dpapad@chromium.org> Commit-Queue: Rebekah Potter <rbpotter@chromium.org> Cr-Commit-Position: refs/heads/master@{#709221}
Showing
Please register or sign in to comment