summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorMaxim Monastirsky <momonasmon@gmail.com>2015-08-13 12:55:04 +0300
committerAndras Timar <andras.timar@collabora.com>2015-08-20 20:34:09 +0200
commit987d1153d75b9be6d631783cb22b661bd3ab2582 (patch)
tree82d673ca1b573c1988486c95b272a620bbecc2f5 /svx
parent6a851b4716a0f9e0e299181047104f871ff4b7f1 (diff)
tdf#78111 Sane preferred width for the color mode combobox
Don't let long strings (in some languages) make it request so much space. Change-Id: I5b2af9d7cc54d1ba772ae75971cfff27bee31a05 (cherry picked from commit d2f218f54369c6d7fb38d0b701aa86fdf5aae843) Reviewed-on: https://gerrit.libreoffice.org/17778 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/sidebar/graphic/GraphicPropertyPanel.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/svx/source/sidebar/graphic/GraphicPropertyPanel.cxx b/svx/source/sidebar/graphic/GraphicPropertyPanel.cxx
index dd371dfa0861..f490f462002a 100644
--- a/svx/source/sidebar/graphic/GraphicPropertyPanel.cxx
+++ b/svx/source/sidebar/graphic/GraphicPropertyPanel.cxx
@@ -58,6 +58,7 @@ GraphicPropertyPanel::GraphicPropertyPanel(
get(mpMtrBrightness, "setbrightness");
get(mpMtrContrast, "setcontrast");
get(mpLBColorMode, "setcolormode");
+ mpLBColorMode->set_width_request(mpLBColorMode->get_preferred_size().Width());
get(mpMtrTrans, "settransparency");
get(mpMtrRed, "setred");
get(mpMtrGreen, "setgreen");