diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-06-16 09:42:47 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-06-16 10:48:05 +0200 |
commit | 9e4502f0e393d2bc2810488b3ebb0a5c23038436 (patch) | |
tree | 6350e85e9b58de90ccfa4ef355f8040383d1f1f5 | |
parent | 579497164f6bddfeb14bb6b0f4b9cd3322af1803 (diff) |
Resolves: tdf#108419 use spinfield preferred size as transparency widget size
Change-Id: I7b5c8aeb087efe007c687dc1f206bcb0e8b0173e
Reviewed-on: https://gerrit.libreoffice.org/38864
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
-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 2a20d011028e..4c58847a33c1 100644 --- a/svx/source/tbxctrls/grafctrl.cxx +++ b/svx/source/tbxctrls/grafctrl.cxx @@ -92,11 +92,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" ) { |