[Libreoffice-commits] core.git: Branch 'libreoffice-4-4-0' - cui/source

Caolán McNamara caolanm at redhat.com
Fri Jan 16 01:12:10 PST 2015


 cui/source/options/treeopt.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit e340f367cca07422fb415696fb729b43db221530
Author: Caolán McNamara <caolanm at redhat.com>
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 <caolanm at redhat.com>
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    (cherry picked from commit d2ad3d8af0f8217ba7d472630a297812d8a62b67)
    Reviewed-on: https://gerrit.libreoffice.org/13949
    Reviewed-by: Jan Holesovsky <kendy at collabora.com>

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());
 }
 


More information about the Libreoffice-commits mailing list