Issue metadata
Sign in to add a comment
|
Range getClientRects API returns wrong values after changing system display size
Reported by
lge-systemwebview@lge.com,
Nov 22 2016
|
||||||||||||||||||||||||
Issue description
THIS TEMPLATE IS FOR FILING BUGS ON THE ANDROID SYSTEM WEBVIEW. GENERAL WEB
BUGS SHOULD BE FILED USING A DIFFERENT TEMPLATE!
Device name: Any 7.0 Device(LG G5/Nexus/Pixel)
Android version:7.0 Nougat
WebView version (from system settings -> Apps -> Android System WebView):54.0.2840.68
Application: Propritery
Application version:
URLs (if applicable):
Steps to reproduce:
getClientRects API is returning wrong values when display size is changed.
Scenario:
1. Launch the sample app -> minimize the app->system settings-> Display-> More->Display size-> Change to very small
2. Reopen the app from Recent apps window-> Now type character after the image-> Observe rect top value from the logs (search for "rect top" string in the logcat)
3. Now clear the sample app from history -> Again launch the app -> Now type character after the image-> Observe rect top value from the logs (search for "rect top" string in the logcat)
rect top value from getClientRects is giving wrong values when app is not launched fresh after changing the display size.
Expected result:
getClientRects should give proper values after changing the display size settings and then reopening from recent apps
Actual result:
etClientRects is giving wrong coordinate values after changing the display size settings and then reopening from recent apps.
Code snippet used:
var sel = window.getSelection();
var range = sel.getRangeAt(0);
var caretRect = range.getClientRects();
console.log("rect top : " + caretRect[0].top);
,
Nov 22 2016
,
Nov 22 2016
webview doesn't support the new N feature that changes display size yet, Tima is working on it until webview supports it, apps can restart the activity when display changes
,
Nov 22 2016
|
|||||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||||
Comment 1 by lge-systemwebview@lge.com
, Nov 22 20165.9 MB
5.9 MB Download