Kaydet (Commit) 1ad3ed20 authored tarafından Caolán McNamara's avatar Caolán McNamara

Resolves: tdf#90473 bibliography doesn't resize after reload

resize *after* setting visibility of controls and not before

Change-Id: I9318b8a5bc1f4afc6f4ceb4503af3425d0f6364b
üst 95942b16
......@@ -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 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment