[gnome-builder] prefs: remove border_width from available allocation	height
- From: Christian Hergert <chergert src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [gnome-builder] prefs: remove border_width from available allocation	height
 
- Date: Fri, 29 Jan 2016 10:27:11 +0000 (UTC)
 
commit f37c9869b099197247e1ac6638e66df094a9a399
Author: Christian Hergert <chergert redhat com>
Date:   Fri Jan 29 11:26:47 2016 +0100
    prefs: remove border_width from available allocation height
    
    When we are doing layout with a given height, ensure we don't assume the
    border width is usable. Otherwise we have an issue with just barely being
    off as you resize the viewport.
 libide/preferences/ide-preferences-flow-box.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libide/preferences/ide-preferences-flow-box.c b/libide/preferences/ide-preferences-flow-box.c
index a0f8f4e..f27e1e5 100644
--- a/libide/preferences/ide-preferences-flow-box.c
+++ b/libide/preferences/ide-preferences-flow-box.c
@@ -102,7 +102,7 @@ ide_preferences_flow_box_layout (IdePreferencesFlowBox *self,
       alloc.x = border_width + (COLUMN_WIDTH * column) + (column * COLUMN_SPACING);
       alloc.y = border_width;
       alloc.width = COLUMN_WIDTH;
-      alloc.height = (height != 0) ? height : total_height / n_columns;
+      alloc.height = (height != 0) ? (height - (border_width * 2)) : total_height / n_columns;
 
       for (; i < self->children->len; i++, j++)
         {
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]