summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorMaxim Monastirsky <momonasmon@gmail.com>2018-07-04 19:38:54 +0300
committerMaxim Monastirsky <momonasmon@gmail.com>2018-07-05 12:42:19 +0200
commit8161d9cf7649e1183e51aaa2525a9c0374205a3d (patch)
tree03eb194eafa50d4716e307c8ab571aa351966186 /svtools
parent0e83efbccc180c957f77291fc0fdc6dd74eae0f4 (diff)
Fix initial width of the color palette in welded picker
Problem can be seen with non-gtk3, if the initial palette has no scrollbar (e.g. "standard" palette). The cause is that in non-gtk3 we don't have overlay scrollbars, so the palette area needs to be enlarged when switching from a palette with a scrollbar to a palette without a scrollbar. In practise, this was happening also on initial show, although the palette already had the correct width. To fix that, start with a never scrollbar policy by default, and add the scrollbar later if needed. Change-Id: I5286f301b3c7ef5c72b650290ace784222f7922d Reviewed-on: https://gerrit.libreoffice.org/56995 Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com> Tested-by: Maxim Monastirsky <momonasmon@gmail.com>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/control/valueset.cxx3
1 files changed, 0 insertions, 3 deletions
diff --git a/svtools/source/control/valueset.cxx b/svtools/source/control/valueset.cxx
index ef76d4bd2f60..bd2cb8e0b427 100644
--- a/svtools/source/control/valueset.cxx
+++ b/svtools/source/control/valueset.cxx
@@ -3634,9 +3634,6 @@ Size SvtValueSet::CalcWindowSizePixel( const Size& rItemSize, sal_uInt16 nDesire
aSize.AdjustHeight(nTxtHeight + n + mnSpacing );
}
- // sum possible ScrollBar width
- aSize.AdjustWidth(GetScrollWidth());
-
return aSize;
}