summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-04-09 12:16:55 +0100
committerAdolfo Jayme Barrientos <fitojb@ubuntu.com>2015-04-09 12:26:54 +0000
commit81cb36b2678f41240829de10a0783a3040f8ec85 (patch)
treebd6d4ad2adab9f3ac8a9b9cc303c88592e905416 /extensions
parent38edb91c840c4c109024c578da0aededdcd8dfca (diff)
Resolves: tdf#90473 bibliography doesn't resize after reload
resize *after* setting visibility of controls and not before Change-Id: I9318b8a5bc1f4afc6f4ceb4503af3425d0f6364b (cherry picked from commit 1ad3ed20071c81e031c1ed7f546c37fd280803c0) Reviewed-on: https://gerrit.libreoffice.org/15212 Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com> Tested-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/bibliography/bibview.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/source/bibliography/bibview.cxx b/extensions/source/bibliography/bibview.cxx
index 64929b2d8f47..2d715d040d5a 100644
--- a/extensions/source/bibliography/bibview.cxx
+++ b/extensions/source/bibliography/bibview.cxx
@@ -115,8 +115,6 @@ namespace bib
m_xGeneralPage = m_pGeneralPage = new BibGeneralPage( this, m_pDatMan );
m_pGeneralPage->Show();
- Resize();
-
if( HasFocus() )
// "delayed" GetFocus() because GetFocus() is initially called before GeneralPage is created
m_pGeneralPage->GrabFocus();
@@ -156,12 +154,14 @@ namespace bib
{
UpdatePages();
FormControlContainer::_loaded( _rEvent );
+ Resize();
}
void BibView::_reloaded( const EventObject& _rEvent )
{
UpdatePages();
FormControlContainer::_loaded( _rEvent );
+ Resize();
}
IMPL_STATIC_LINK( BibView, CallMappingHdl, BibView*, EMPTYARG )