[libadwaita/wip/exalm/leaflet-fix: 1/2] leaflet: Fix clipping again
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/wip/exalm/leaflet-fix: 1/2] leaflet: Fix clipping again
- Date: Mon, 25 Apr 2022 23:53:04 +0000 (UTC)
commit 13aa9a6bf29ca6c00188cf0284a2e4d0a3bd6409
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Tue Apr 26 03:51:02 2022 +0400
leaflet: Fix clipping again
This time it was failing during mode animations - only showing the
shadowed children and overlap child.
src/adw-leaflet.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/adw-leaflet.c b/src/adw-leaflet.c
index ef2d15be..87488c82 100644
--- a/src/adw-leaflet.c
+++ b/src/adw-leaflet.c
@@ -1977,16 +1977,16 @@ adw_leaflet_snapshot (GtkWidget *widget,
shadow_rect.height = shadow_rect.y;
shadow_rect.y = 0;
} else {
- shadow_rect.y = shadow_rect.height;
- shadow_rect.height = overlap_child->alloc.height;
+ shadow_rect.y = overlap_child->alloc.y;
+ shadow_rect.height = gtk_widget_get_height (widget) - shadow_rect.y;
}
} else {
if (is_over == is_rtl) {
shadow_rect.width = shadow_rect.x;
shadow_rect.x = 0;
} else {
- shadow_rect.x = shadow_rect.width;
- shadow_rect.width = overlap_child->alloc.width;
+ shadow_rect.x = overlap_child->alloc.x;
+ shadow_rect.width = gtk_widget_get_width (widget) - shadow_rect.x;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]