• rbpotter's avatar
    Print Preview: Fix viewer zoom buttons in RTL · 6587d037
    rbpotter authored
    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: default avatarDemetrios Papadopoulos <dpapad@chromium.org>
    Commit-Queue: Rebekah Potter <rbpotter@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#709221}
    6587d037
viewer-zoom-toolbar.js 4.77 KB