Skip to content

Commit

Permalink
widget: Fix measure baseline to return -1
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Persch committed Jan 14, 2022
1 parent e32dba1 commit 009a975
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/widget.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1516,7 +1516,7 @@ Widget::measure(GtkOrientation orientation,
terminal()->widget_measure_width(minimum, natural);
break;
case GTK_ORIENTATION_VERTICAL:
*minimum_baseline = *natural_baseline = 0;
*minimum_baseline = *natural_baseline = -1;
terminal()->widget_measure_height(minimum, natural);
break;
}
Expand Down

0 comments on commit 009a975

Please sign in to comment.