summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorYousuf Philips <philipz85@hotmail.com>2017-04-22 05:00:11 +0400
committerSzymon Kłos <szymon.klos@collabora.com>2017-04-22 10:48:16 +0200
commit59ef98de50ad7892454b35bec823df6869ec6421 (patch)
treeefe98d609bc7ea8b58abad545c6881adab9aaaf9 /vcl
parentd0241ea85b6836d2ffa3c00d5e01e7b5ff9b3c15 (diff)
tdf#102779 Set a minimum height for Notebookbar tabs
Change-Id: Ieccd9c721632c4e194afcfab53322aab315174cd Reviewed-on: https://gerrit.libreoffice.org/36810 Reviewed-by: Szymon Kłos <szymon.klos@collabora.com> Tested-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/control/tabctrl.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/source/control/tabctrl.cxx b/vcl/source/control/tabctrl.cxx
index 4f87c097f88d..0c39d870e6aa 100644
--- a/vcl/source/control/tabctrl.cxx
+++ b/vcl/source/control/tabctrl.cxx
@@ -2421,6 +2421,9 @@ bool NotebookbarTabControlBase::ImplPlaceTabs( long nWidth )
if( !it->maText.isEmpty() && aSize.getWidth() < 100)
aSize.Width() = 100;
+ if( !it->maText.isEmpty() && aSize.getHeight() < 28 )
+ aSize.Height() = 28;
+
tools::Rectangle aNewRect( Point( nX, nY ), aSize );
if ( mbSmallInvalidate && (it->maRect != aNewRect) )
mbSmallInvalidate = false;