summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2005-11-04 14:49:35 +0000
committerKurt Zenker <kz@openoffice.org>2005-11-04 14:49:35 +0000
commitc802fa01c00b67dfd014e135ac69b3a0ca2b3793 (patch)
tree71307ebad04d4f93e48d2efae82c9d39857df5c3 /sfx2
parent6b36e9cc9577bd97786f11ff1c3694cee2c0a9a3 (diff)
INTEGRATION: CWS fwk25 (1.113.30); FILE MERGED
2005/10/27 06:58:23 as 1.113.30.2: #i55528# remove some debug statements 2005/10/17 09:56:04 as 1.113.30.1: #i55528# workaround for resize problem
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/appl/newhelp.cxx17
1 files changed, 13 insertions, 4 deletions
diff --git a/sfx2/source/appl/newhelp.cxx b/sfx2/source/appl/newhelp.cxx
index 16be78b89ff6..0db15652add4 100644
--- a/sfx2/source/appl/newhelp.cxx
+++ b/sfx2/source/appl/newhelp.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: newhelp.cxx,v $
*
- * $Revision: 1.113 $
+ * $Revision: 1.114 $
*
- * last change: $Author: rt $ $Date: 2005-09-07 17:44:49 $
+ * last change: $Author: kz $ $Date: 2005-11-04 15:49:35 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -3006,7 +3006,16 @@ void SfxHelpWindow_Impl::MakeLayout()
if ( nHeight > 0 && xWindow.is() )
{
Window* pScreenWin = VCLUnoHelper::GetWindow( xWindow );
- pScreenWin->Hide();
+
+ /* #i55528#
+ Hide() / Show() will produce starnge effects.
+ The returned size (used later to be written back into the configuration)
+ isnt the right after a resize during the window is hidden.
+ If this resize is done if the window is visible evyrthing works as aspected.
+ Some VCL-patches could not solve this problem so I've established the
+ workaround: resize the help window if it's visible .-)
+ */
+// pScreenWin->Hide();
::com::sun::star::awt::Rectangle aRect = xWindow->getPosSize();
sal_Int32 nOldWidth = bIndex ? nCollapseWidth : nExpandWidth;
@@ -3024,7 +3033,7 @@ void SfxHelpWindow_Impl::MakeLayout()
else if ( aWinPos.X() > 0 && aWinPos.Y() > 0 )
pScreenWin->SetPosPixel( aWinPos );
- pScreenWin->Show();
+// pScreenWin->Show();
}
Clear();