diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-01-11 19:52:40 -0600 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-01-16 09:11:37 +0000 |
commit | e340f367cca07422fb415696fb729b43db221530 (patch) | |
tree | b58b1fbcdb39184e72d09f7c16b4b71909638086 | |
parent | 3e3a3617903b327849b00f44609dd6b3df5305f9 (diff) |
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 <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
(cherry picked from commit d2ad3d8af0f8217ba7d472630a297812d8a62b67)
Reviewed-on: https://gerrit.libreoffice.org/13949
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
-rw-r--r-- | cui/source/options/treeopt.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cui/source/options/treeopt.cxx b/cui/source/options/treeopt.cxx index 46673d20e1b7..069eb79c32be 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()); } |