Skip to content

Commit

Permalink
Merge pull request #1760 from mtilda/patch-1
Browse files Browse the repository at this point in the history
Fix `SqueezerBin::size_allocate()` in example
  • Loading branch information
sdroege authored Jun 2, 2024
2 parents 3826b9a + c1cf35e commit 1b8dc13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/squeezer_bin/squeezer_bin/imp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ impl WidgetImpl for SqueezerBin {
fn size_allocate(&self, width: i32, height: i32, baseline: i32) {
let widget = self.obj();
if let Some(child) = widget.child() {
let ((_, horizontal_size), (_, vertical_size)) = child_size(&*widget);
let ((_, horizontal_size), (_, vertical_size)) = child_size(&child);

let (mut horizontal_zoom, mut vertical_zoom) = (
width as f32 / horizontal_size as f32,
Expand Down

0 comments on commit 1b8dc13

Please sign in to comment.