View | Details | Raw Unified | Return to issue 87596
Collapse All | Expand All

(-)source/controls/dialogcontrol.cxx (+12 lines)
Lines 1457-1462 Link Here
1457
		nHeight *= nH;
1457
		nHeight *= nH;
1458
		nHeight /= 8;
1458
		nHeight /= 8;
1459
	}
1459
	}
1460
1461
    // care for the window decoration - model width/height does *not* include the window
1462
    // decoration, but control/peer width/height *does* include it.
1463
    // #i87596# #i98805# / 2009-02-18 / frank.schoenheit@sun.com
1464
    Reference< XDevice > xDevice( rxCtrl->getPeer(), UNO_QUERY );
1465
    if ( xDevice.is() )
1466
    {
1467
        DeviceInfo aDeviceInfo( xDevice->getInfo() );
1468
        nWidth += aDeviceInfo.LeftInset + aDeviceInfo.RightInset;
1469
        nHeight += aDeviceInfo.TopInset + aDeviceInfo.BottomInset;
1470
    }
1471
1460
	Reference < XWindow > xW( rxCtrl, UNO_QUERY );
1472
	Reference < XWindow > xW( rxCtrl, UNO_QUERY );
1461
	xW->setPosSize( nX, nY, nWidth, nHeight, PosSize::POSSIZE );
1473
	xW->setPosSize( nX, nY, nWidth, nHeight, PosSize::POSSIZE );
1462
}
1474
}

Return to issue 87596