Skip to content

Commit

Permalink
fix browser_view size
Browse files Browse the repository at this point in the history
  • Loading branch information
LegitCamper committed Aug 18, 2024
1 parent 05f6954 commit 2313077
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/widgets/browser_view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 2313077

Please sign in to comment.