aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-03-05 17:02:55 +0000
committerCaolán McNamara <caolanm@redhat.com>2021-03-05 21:58:00 +0100
commitd130bda377d00654267e8bfb75e61f34e8991150 (patch)
tree861d25e6bf4331e64995ba9746d47862f19244f7
parent9ffd28c32a301141a26e41ddd0cf485a562c83bb (diff)
replace GetOptimalSize with Container::get_preferred_size HEADmaster
Change-Id: Ib4760da9ba3d0e25de3a5a0d363360720b81d197 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112026 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--sw/source/uibase/utlui/navipi.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/uibase/utlui/navipi.cxx b/sw/source/uibase/utlui/navipi.cxx
index 53fdad3098e3..3520a9a5de53 100644
--- a/sw/source/uibase/utlui/navipi.cxx
+++ b/sw/source/uibase/utlui/navipi.cxx
@@ -435,7 +435,7 @@ void SwNavigationPI::ZoomOut()
m_xDocListBox->show();
}
- Size aOptimalSize(GetOptimalSize());
+ Size aOptimalSize(m_xContainer->get_preferred_size());
Size aNewSize(pNav->GetOutputSizePixel());
aNewSize.setHeight( m_aExpandedSize.Height() );
pNav->SetMinOutputSizePixel(aOptimalSize);
@@ -463,7 +463,7 @@ void SwNavigationPI::ZoomIn()
m_xDocListBox->hide();
m_bIsZoomedIn = true;
- Size aOptimalSize(GetOptimalSize());
+ Size aOptimalSize(m_xContainer->get_preferred_size());
Size aNewSize(pNav->GetOutputSizePixel());
aNewSize.setHeight( aOptimalSize.Height() );
pNav->SetMinOutputSizePixel(aOptimalSize);
@@ -645,7 +645,7 @@ SwNavigationPI::SwNavigationPI(vcl::Window* pParent,
m_xGlobalTree->set_accessible_name(SwResId(STR_ACCESS_TL_GLOBAL));
m_xDocListBox->set_accessible_name(m_aStatusArr[3]);
- m_aExpandedSize = GetOptimalSize();
+ m_aExpandedSize = m_xContainer->get_preferred_size();
m_pInitialFocusWidget = m_xContent1ToolBox.get();
}