cui/source/options/treeopt.cxx | 1 +
1 file changed, 1 insertion(+)
New commits:
commit d2ad3d8af0f8217ba7d472630a297812d8a62b67
Author: Caolán McNamara <[email protected]>
Date: Sun Jan 11 19:52:40 2015 -0600
fdo#87551 Category tree is too thin since conversion to .ui
Measure in approx chars and not pixels.
Change-Id: Ibf34083d99e0aceee2855ed10939ad3b60b8abae
Reviewed-on: https://gerrit.libreoffice.org/13948
Tested-by: Caolán McNamara <[email protected]>
Reviewed-by: Caolán McNamara <[email protected]>
diff --git a/cui/source/options/treeopt.cxx b/cui/source/options/treeopt.cxx
index 46673d2..069eb79 100644
--- a/cui/source/options/treeopt.cxx
+++ b/cui/source/options/treeopt.cxx
@@ -512,6 +512,7 @@ void OfaTreeOptionsDialog::InitWidgets()
Size aSize(pTabBox->LogicToPixel(Size(278, 259), MAP_APPFONT));
pTabBox->set_width_request(aSize.Width());
pTabBox->set_height_request(aSize.Height() -
get_action_area()->get_preferred_size().Height());
+ pTreeLB->set_width_request(pTreeLB->approximate_char_width() * 25);
pTreeLB->set_height_request(pTabBox->get_height_request());
}
_______________________________________________
Libreoffice-commits mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits