File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -7452,18 +7452,12 @@ public void handleMessage(Message msg) {
74527452
74537453 case SHOW_RECT_MSG_ID : {
74547454 WebViewCore .ShowRectData data = (WebViewCore .ShowRectData ) msg .obj ;
7455- int x = getScrollX ();
74567455 int left = contentToViewX (data .mLeft );
74577456 int width = contentToViewDimension (data .mWidth );
74587457 int maxWidth = contentToViewDimension (data .mContentWidth );
74597458 int viewWidth = getViewWidth ();
7460- if (width < viewWidth ) {
7461- // center align
7462- x += left + width / 2 - getScrollX () - viewWidth / 2 ;
7463- } else {
7464- x += (int ) (left + data .mXPercentInDoc * width
7465- - getScrollX () - data .mXPercentInView * viewWidth );
7466- }
7459+ int x = (int ) (left + data .mXPercentInDoc * width -
7460+ data .mXPercentInView * viewWidth );
74677461 if (DebugFlags .WEB_VIEW ) {
74687462 Log .v (LOGTAG , "showRectMsg=(left=" + left + ",width=" +
74697463 width + ",maxWidth=" + maxWidth +
You can’t perform that action at this time.
0 commit comments