• Yuwei Huang's avatar
    [CRD iOS] Rework the HostView keyboard layout · 0ad8bf2f
    Yuwei Huang authored
    When rotating the screen on iPad with the keyboard showing, for some
    reason the host view will become improperly laid out. Part of the view
    gets overlaid by the keyboard.
    
    My suspicion is the view frame becomes inconsistent when the rotation
    happens.
    
    This CL fixes the problem by reworking the keyboard layout using
    constraints. It also makes GLRenderer cache the view size before the
    canvas is created.
    
    Bug: 751273
    Change-Id: I5146ff6bf602eef1857259e5e50ca6be1d952a68
    Reviewed-on: https://chromium-review.googlesource.com/596913
    Commit-Queue: Yuwei Huang <yuweih@chromium.org>
    Reviewed-by: default avatarScott Nichols <nicholss@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#491519}
    0ad8bf2f
gl_renderer.h 4.95 KB