diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-04-09 12:16:55 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-04-09 12:19:07 +0100 |
commit | 1ad3ed20071c81e031c1ed7f546c37fd280803c0 (patch) | |
tree | 7856464851a8ea40871939171fbc089a22a4140f | |
parent | 95942b16f44bc6eac57ad7b579b4158565446884 (diff) |
Resolves: tdf#90473 bibliography doesn't resize after reload
resize *after* setting visibility of controls and not before
Change-Id: I9318b8a5bc1f4afc6f4ceb4503af3425d0f6364b
-rw-r--r-- | extensions/source/bibliography/bibview.cxx | 4 |
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 ) |