diff options
author | Frank Schoenheit [fs] <frank.schoenheit@sun.com> | 2010-04-06 13:30:14 +0200 |
---|---|---|
committer | Frank Schoenheit [fs] <frank.schoenheit@sun.com> | 2010-04-06 13:30:14 +0200 |
commit | b26b5a2737848cdbeac3a42af78a86ac7a70300b (patch) | |
tree | 113cb30fd0f39ba6486a400ce4ca53146d6eec39 /svtools/source/toolpanel | |
parent | 50a88d5340d73aa6cecec56d059887725de2e4e9 (diff) |
slidecopy: when activating a panel, also resize it. Cannot guarantee it has been done before ...
Diffstat (limited to 'svtools/source/toolpanel')
-rwxr-xr-x | svtools/source/toolpanel/toolpaneldeck.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/svtools/source/toolpanel/toolpaneldeck.cxx b/svtools/source/toolpanel/toolpaneldeck.cxx index 4b28699f1134..fe4fa63ad997 100755 --- a/svtools/source/toolpanel/toolpaneldeck.cxx +++ b/svtools/source/toolpanel/toolpaneldeck.cxx @@ -226,7 +226,7 @@ namespace svt // position the active panel const PToolPanel pActive( GetActiveOrDummyPanel_Impl() ); - pActive->SetSizePixel( m_aPanelAnchor.GetSizePixel() ); + pActive->SetSizePixel( m_aPanelAnchor.GetOutputSizePixel() ); } //-------------------------------------------------------------------- @@ -325,6 +325,9 @@ namespace svt pNewActive->Activate( m_aPanelAnchor ); pNewActive->GrabFocus(); + // resize the panel (cannot guarantee it has ever been resized before + pNewActive->SetSizePixel( m_aPanelAnchor.GetOutputSizePixel() ); + // multiplex to our own listeners m_aListeners.ActivePanelChanged( i_rOldActive, i_rNewActive ); } |