We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0aee584 commit 08efedeCopy full SHA for 08efede
java/org/cef/browser/CefBrowserWr.java
@@ -378,7 +378,7 @@ private void doUpdate() {
378
}
379
} else {
380
synchronized (content_rect_) {
381
- Rectangle bounds = component_.getBounds();
+ Rectangle bounds = null != canvas_ ? canvas_.getBounds() : component_.getBounds();
382
content_rect_ = new Rectangle((int) (bounds.getX() * scaleFactor_),
383
(int) (bounds.getY() * scaleFactor_),
384
(int) (bounds.getWidth() * scaleFactor_),
0 commit comments