diff options
author | Jan Holesovsky <kendy@suse.cz> | 2012-08-23 07:57:53 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@suse.cz> | 2012-08-23 17:54:00 +0200 |
commit | 35c9ffb2750178b558c71af12240cd5809a0314e (patch) | |
tree | 950e1acee6b9d56d656ae0d68fe790ee8664a41d /framework | |
parent | Remove ViewShell's border. (diff) | |
download | core-35c9ffb2750178b558c71af12240cd5809a0314e.tar.gz core-35c9ffb2750178b558c71af12240cd5809a0314e.zip |
Fix off-by-one drawing problems of the bottom docking area.
Change-Id: Ic463f6829f7faa6d9667656f42f844a12d85518e
Diffstat (limited to 'framework')
-rw-r--r-- | framework/source/layoutmanager/toolbarlayoutmanager.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/source/layoutmanager/toolbarlayoutmanager.cxx b/framework/source/layoutmanager/toolbarlayoutmanager.cxx index a7789bdf151d..0fbd031d0b12 100644 --- a/framework/source/layoutmanager/toolbarlayoutmanager.cxx +++ b/framework/source/layoutmanager/toolbarlayoutmanager.cxx @@ -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; |