[glom] Print Layout: Related Records: Set the row height.



commit 971fed93802c6f5cd2835ae22820300eef52016b
Author: Murray Cumming <murrayc murrayc com>
Date:   Mon Aug 22 14:15:28 2011 +0200

    Print Layout: Related Records: Set the row height.
    
    * glom/print_layout/canvas_layout_item.cc: We can do this now that the
    goocanvas bug has been fixed, though configure should check for it when the
    tarball version exists.

 ChangeLog                               |    8 ++++++++
 glom/print_layout/canvas_layout_item.cc |    7 ++-----
 2 files changed, 10 insertions(+), 5 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index de51571..92f4cfd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2011-08-22  Murray Cumming  <murrayc murrayc com>
 
+	Print Layout: Related Records: Set the row height.
+
+	* glom/print_layout/canvas_layout_item.cc: We can do this now that the 
+	goocanvas bug has been fixed, though configure should check for it when the
+	tarball version exists.
+
+2011-08-22  Murray Cumming  <murrayc murrayc com>
+
 	Print Layout / Relationships Overview: Avoid errors with & in the text.
 
 	* glom/utility_widgets/canvas/canvas_text_movable.cc: reconstruct_markup:
diff --git a/glom/print_layout/canvas_layout_item.cc b/glom/print_layout/canvas_layout_item.cc
index 5bcbe7b..e3c7b81 100644
--- a/glom/print_layout/canvas_layout_item.cc
+++ b/glom/print_layout/canvas_layout_item.cc
@@ -315,14 +315,11 @@ Glib::RefPtr<CanvasItemMovable> CanvasLayoutItem::create_canvas_item_for_layout_
                   //cell->set_width_height(width, row_height);
 
                   //TODO: Add/Remove rows when resizing, instead of resizing the rows:
+                  cell->set_width_height(width, row_height);
+
                   Glib::RefPtr<Goocanvas::Item> cell_as_item = CanvasItemMovable::cast_to_item(cell);
                   if(cell_as_item)
                   {
-                    //TODO: Setting the height too cause weird problems in the GooCanvasTable,
-                    //making child items disappear as the table is moved around.
-                    cell_as_item->property_width() = width;
-                    //cell_as_item->set_width_height(width, row_height);
-
                     canvas_item->attach(cell_as_item,
                       col /* left_attach */, col + 1 /* right_attach */,
                       row /* top_attach */, row + 1 /* right_attach */,



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