diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-07-16 13:26:53 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-07-16 13:29:50 +0100 |
commit | b57f4f2b77cb17cf7c3d5015a426bfb20cc3d48b (patch) | |
tree | 41e63f372f82f6c9fb8eed24c0a9abe654db58be /cui | |
parent | bc05c045c8fcbb8184305cf9b5d03cc5cf14c6a3 (diff) |
extensions aren't layout enabled yet
so give them the known final size to work with via a non-layout aware tabpage
Change-Id: Iaae3abfacd78ebc8bcc3ece54ed0603a4b28b9e9
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/options/treeopt.cxx | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/cui/source/options/treeopt.cxx b/cui/source/options/treeopt.cxx index 7932d89c8cd4..f6a48c5b3236 100644 --- a/cui/source/options/treeopt.cxx +++ b/cui/source/options/treeopt.cxx @@ -2179,7 +2179,6 @@ short OfaTreeOptionsDialog::Execute() } // class ExtensionsTabPage ----------------------------------------------- - ExtensionsTabPage::ExtensionsTabPage( Window* pParent, WinBits nStyle, const OUString& rPageURL, const OUString& rEvtHdl, const Reference< awt::XContainerWindowProvider >& rProvider ) : @@ -2194,8 +2193,6 @@ ExtensionsTabPage::ExtensionsTabPage( { } - - ExtensionsTabPage::~ExtensionsTabPage() { Hide(); @@ -2282,8 +2279,6 @@ bool ExtensionsTabPage::DispatchAction( const OUString& rAction ) return bRet; } - - void ExtensionsTabPage::ActivatePage() { TabPage::ActivatePage(); @@ -2295,7 +2290,7 @@ void ExtensionsTabPage::ActivatePage() if ( m_xPage.is() ) { Point aPos = Point(); - Size aSize = GetSizePixel(); + Size aSize = GetParent()->get_preferred_size(); m_xPage->setPosSize( aPos.X() + 1, aPos.Y() + 1, aSize.Width() - 2, aSize.Height() - 2, awt::PosSize::POSSIZE ); if ( !m_sEventHdl.isEmpty() ) @@ -2310,8 +2305,6 @@ void ExtensionsTabPage::ActivatePage() } } - - void ExtensionsTabPage::DeactivatePage() { TabPage::DeactivatePage(); |