Skip to content

Commit 08efede

Browse files
Yuanuomagreenblatt
authored andcommitted
Fix incorrect bounds
1 parent 0aee584 commit 08efede

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/org/cef/browser/CefBrowserWr.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ private void doUpdate() {
378378
}
379379
} else {
380380
synchronized (content_rect_) {
381-
Rectangle bounds = component_.getBounds();
381+
Rectangle bounds = null != canvas_ ? canvas_.getBounds() : component_.getBounds();
382382
content_rect_ = new Rectangle((int) (bounds.getX() * scaleFactor_),
383383
(int) (bounds.getY() * scaleFactor_),
384384
(int) (bounds.getWidth() * scaleFactor_),

0 commit comments

Comments
 (0)