Kaydet (Commit) 35c9ffb2 authored tarafından Jan Holesovsky's avatar Jan Holesovsky

Fix off-by-one drawing problems of the bottom docking area.

Change-Id: Ic463f6829f7faa6d9667656f42f844a12d85518e
üst dd738235
......@@ -180,12 +180,12 @@ void ToolbarLayoutManager::implts_setDockingAreaWindowSizes( const awt::Rectangl
if ( rBorderSpace.Height >= 0 )
{
// Bottom docking area window
sal_Int32 nBottomPos = std::max( sal_Int32( aContainerClientSize.Height - rBorderSpace.Height - aStatusBarHeight ), sal_Int32( 0 ));
sal_Int32 nBottomPos = std::max( sal_Int32( aContainerClientSize.Height - rBorderSpace.Height - aStatusBarHeight + 1 ), sal_Int32( 0 ));
sal_Int32 nHeight = ( nBottomPos == 0 ) ? 0 : rBorderSpace.Height;
xBottomDockAreaWindow->setPosSize( 0, nBottomPos, aContainerClientSize.Width, nHeight, awt::PosSize::POSSIZE );
xBottomDockAreaWindow->setVisible( sal_True );
nLeftRightDockingAreaHeight -= nHeight;
nLeftRightDockingAreaHeight -= nHeight - 1;
}
nLeftRightDockingAreaHeight -= aStatusBarHeight;
......
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