diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-06-16 09:42:47 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2017-06-27 14:02:18 +0200 |
commit | ab2538cfb69f1c2c955ab3395fa1b8dc6a7fd36f (patch) | |
tree | 06b715c0dc2c71180d6a79742b0c479879e2f284 /svx | |
parent | 18428f127a9c721c10a26e2303c3dc80fe4ee309 (diff) |
Resolves: tdf#108419 use spinfield preferred size as transparency widget size
Change-Id: I7b5c8aeb087efe007c687dc1f206bcb0e8b0173e
Reviewed-on: https://gerrit.libreoffice.org/38866
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
(cherry picked from commit 459914cd491598c32cad203fed6c7b90491f6a52)
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/tbxctrls/grafctrl.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/svx/source/tbxctrls/grafctrl.cxx b/svx/source/tbxctrls/grafctrl.cxx index 114f23f0fe03..6c231f47cfc1 100644 --- a/svx/source/tbxctrls/grafctrl.cxx +++ b/svx/source/tbxctrls/grafctrl.cxx @@ -91,11 +91,8 @@ ImplGrafMetricField::ImplGrafMetricField( vcl::Window* pParent, const OUString& maCommand( rCmd ), mxFrame( rFrame ) { - Size aSize( GetTextWidth( "-100 %" ), GetTextHeight() ); - - aSize.Width() += 20; - aSize.Height() += 6; - SetSizePixel( aSize ); + Size aSize(CalcMinimumSizeForText("-100 %")); + SetSizePixel(aSize); if ( maCommand == ".uno:GrafGamma" ) { |