[libhandy] clamp: Adjust for_size in measure() for CSS
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libhandy] clamp: Adjust for_size in measure() for CSS
- Date: Wed, 10 Feb 2021 09:51:35 +0000 (UTC)
commit 920dbc6dfe2bf31a556505543ac30acbb838d2c0
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Tue Feb 9 20:43:32 2021 +0500
clamp: Adjust for_size in measure() for CSS
The exciting game of whack-a-mole continues! Width-for-height and
height-for-width sizing was another place where we didn't correctly
implement css box. Use the newly added helper to fix that.
src/hdy-clamp.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/hdy-clamp.c b/src/hdy-clamp.c
index f79177fb..347bc3ee 100644
--- a/src/hdy-clamp.c
+++ b/src/hdy-clamp.c
@@ -217,6 +217,8 @@ hdy_clamp_measure (GtkWidget *widget,
child = gtk_bin_get_child (bin);
+ for_size = hdy_css_adjust_for_size (widget, orientation, for_size);
+
if (orientation == GTK_ORIENTATION_HORIZONTAL) {
if (self->orientation == orientation) {
if (child && gtk_widget_get_visible (child))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]