• Daniel Hosseinian's avatar
    Force LTR direction of #scroller in the updated PDF Viewer UI · 25ff2e60
    Daniel Hosseinian authored
    The plugin receives scrolling requests directly through the UI from a
    transparent overlaid div. In RTL mode, the scrolling origin of that div
    moves to the top-right corner, unlike in LTR mode, in which the
    scrolling origin is in the top-left corner. The plugin is unable to
    lay out its content based on the UI direction, so it always sets the
    content originating from the top-right.
    
    Consequently, sometimes the content can be scrolled completely
    offscreen and some parts of the content cannot be scrolled to at all.
    
    The plugin should ideally align content to the top-right corner in RTL
    mode. For now, force the UI direction of #scroller to LTR so scrolling
    of the content can originate in the top-left corner, consistent with the
    expectations of the plugin.
    
    Bug: 1158670
    Change-Id: Id86798d61dc22e5f7bf0a3d79a04922ea71f5181
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2592689
    Commit-Queue: Daniel Hosseinian <dhoss@chromium.org>
    Auto-Submit: Daniel Hosseinian <dhoss@chromium.org>
    Reviewed-by: default avatardpapad <dpapad@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#837200}
    25ff2e60
pdf_viewer.html 6.83 KB