Fix metric spinbox tool item size
Instead of guessing, use the CalcMinimumSize(), which also knows about theming. Change-Id: I747571b48c81166d11d03f99ab564b1a25165ef3
This commit is contained in:
@@ -248,9 +248,7 @@ SvxMetricField::SvxMetricField(
|
|||||||
, ePoolUnit(MapUnit::MapCM)
|
, ePoolUnit(MapUnit::MapCM)
|
||||||
, mxFrame(rFrame)
|
, mxFrame(rFrame)
|
||||||
{
|
{
|
||||||
Size aSize(GetTextWidth( "99,99mm" ),GetTextHeight());
|
Size aSize( CalcMinimumSize() );
|
||||||
aSize.Width() += 20;
|
|
||||||
aSize.Height() += 6;
|
|
||||||
SetSizePixel( aSize );
|
SetSizePixel( aSize );
|
||||||
aLogicalSize = PixelToLogic(aSize, MapUnit::MapAppFont);
|
aLogicalSize = PixelToLogic(aSize, MapUnit::MapAppFont);
|
||||||
SetUnit( FUNIT_MM );
|
SetUnit( FUNIT_MM );
|
||||||
|
Reference in New Issue
Block a user