[gnome-builder] libide/gui: don't allow preview picture to grow vertically



commit 2c2cb67bc6583d5b0e293f157b271cde7035ae2b
Author: Christian Hergert <chergert redhat com>
Date:   Sat Sep 24 19:20:30 2022 -0700

    libide/gui: don't allow preview picture to grow vertically
    
    This can happen if you  are on 1x (ie: no scaling) as the image is a 2x
    image. It appears something isn't quite right in GtkPicture that will allow
    it to grow higher up to the 2x pixel size.

 src/libide/gui/ide-style-variant-preview.ui | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)
---
diff --git a/src/libide/gui/ide-style-variant-preview.ui b/src/libide/gui/ide-style-variant-preview.ui
index 0a5e8f8b3..ebe156732 100644
--- a/src/libide/gui/ide-style-variant-preview.ui
+++ b/src/libide/gui/ide-style-variant-preview.ui
@@ -12,10 +12,16 @@
         <property name="margin-end">2</property>
         <property name="overflow">hidden</property>
         <child>
-          <object class="GtkPicture" id="wallpaper">
-            <property name="content-fit">fill</property>
-            <property name="width-request">164</property>
-            <property name="height-request">90</property>
+          <object class="AdwClamp">
+            <property name="orientation">vertical</property>
+            <property name="maximum-size">90</property>
+            <property name="child">
+              <object class="GtkPicture" id="wallpaper">
+                <property name="content-fit">fill</property>
+                <property name="width-request">164</property>
+                <property name="height-request">90</property>
+              </object>
+            </property>
           </object>
         </child>
       </object>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]