[gnome-contacts] Fixed height issues with Center container.



commit 01347975e741cd8df1108f2b31cb361165341316
Author: Erick PÃrez Castellanos <erick red gmail com>
Date:   Thu Jan 10 15:22:12 2013 -0500

    Fixed height issues with Center container.
    
    The issue was preventing the ScrolledWindow
    from showing the scrolls, therefore was hiding content.

 src/contacts-contact-pane.vala |   22 ++++++++++++++++++++++
 1 files changed, 22 insertions(+), 0 deletions(-)
---
diff --git a/src/contacts-contact-pane.vala b/src/contacts-contact-pane.vala
index 47677c7..3a87cf8 100644
--- a/src/contacts-contact-pane.vala
+++ b/src/contacts-contact-pane.vala
@@ -54,6 +54,28 @@ public class Center : Bin {
     this.xalign = 0.5;
   }
 
+  public override void get_preferred_height (out int minimum_height, out int natural_height) {
+    var child = get_child ();
+    if (child != null) {
+      int min;
+      int nat;
+      child.get_preferred_height (out min, out nat);
+      minimum_height = min;
+      natural_height = nat;
+    }
+  }
+
+  public override void get_preferred_width (out int minimum_width, out int natural_width) {
+    var child = get_child ();
+    if (child != null) {
+      int min;
+      int nat;
+      child.get_preferred_width (out min, out nat);
+      minimum_width = min;
+      natural_width = nat;
+    }
+  }
+
   public override void size_allocate (Gtk.Allocation allocation) {
     Gtk.Allocation new_alloc;
 



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