Kaydet (Commit) 9e4502f0 authored tarafından Caolán McNamara's avatar Caolán McNamara

Resolves: tdf#108419 use spinfield preferred size as transparency widget size

Change-Id: I7b5c8aeb087efe007c687dc1f206bcb0e8b0173e
Reviewed-on: https://gerrit.libreoffice.org/38864Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 57949716
......@@ -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" )
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment