From 2313077220510f1e8147932b3f40947cee1bb791 Mon Sep 17 00:00:00 2001 From: sawyer bristol Date: Sat, 17 Aug 2024 20:44:55 -0600 Subject: [PATCH] fix browser_view size --- src/widgets/browser_view.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/widgets/browser_view.rs b/src/widgets/browser_view.rs index c838609..eb22fff 100644 --- a/src/widgets/browser_view.rs +++ b/src/widgets/browser_view.rs @@ -91,10 +91,11 @@ where viewport: &Rectangle, ) -> event::Status { // Send updates back if bounds change - if viewport.width != self.bounds.width || viewport.height != self.bounds.height { + let bounds = layout.bounds().size(); + if bounds.width != self.bounds.width || bounds.height != self.bounds.height { self.bounds.width = viewport.width; self.bounds.height = viewport.height; - shell.publish((self.send_bounds)(self.bounds)); + shell.publish((self.send_bounds)(bounds)); } match event {