diff options
author | Katarina Behrens <Katarina.Behrens@cib.de> | 2016-02-27 16:51:50 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-02-29 09:43:05 +0000 |
commit | 7eae3f0389503a39291d0d8dc746a2390588068e (patch) | |
tree | 070782964f32ff47d63cbbe6bc4a476df629ff75 | |
parent | f227de3bed73e4f9b81d93d339188f333a92bf05 (diff) |
tdf#97963: Impose size limit on all 3 edit windows
Doing it for 1 window (tdf#90257) isn't enough, the dialog will grow
outta screen with large fonts not immediately, but on the next opening
Change-Id: I890ecd91a00efc4c7596b30a237f5abb4f87215a
Reviewed-on: https://gerrit.libreoffice.org/22739
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
(cherry picked from commit 787e17d15a1cdb259b56f91bfda9af80b95167c3)
Reviewed-on: https://gerrit.libreoffice.org/22758
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | sc/source/ui/pagedlg/scuitphfedit.cxx | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/sc/source/ui/pagedlg/scuitphfedit.cxx b/sc/source/ui/pagedlg/scuitphfedit.cxx index be28c1199bda..7e3840f93139 100644 --- a/sc/source/ui/pagedlg/scuitphfedit.cxx +++ b/sc/source/ui/pagedlg/scuitphfedit.cxx @@ -131,11 +131,15 @@ ScHFEditPage::ScHFEditPage( vcl::Window* pParent, m_pWndCenter->SetFont( aPatAttr ); m_pWndRight->SetFont( aPatAttr ); - // Set size request of 1 widget, the other two will follow as they are - // in the same grid + // Set size request for all 3 widgets Size aSize = LogicToPixel(Size(80, 120), MAP_APPFONT); - m_pWndLeft->set_width_request(aSize.Width()); - m_pWndLeft->set_height_request(aSize.Height()); + VclPtr<ScEditWindow> aEditWindows[] = {m_pWndLeft, m_pWndCenter, m_pWndRight}; + + for (auto &pEditWindow : aEditWindows) + { + pEditWindow->set_width_request(aSize.Width()); + pEditWindow->set_height_request(aSize.Height()); + } m_pWndLeft->SetObjectSelectHdl( LINK(this,ScHFEditPage,ObjectSelectHdl) ); m_pWndCenter->SetObjectSelectHdl( LINK(this,ScHFEditPage,ObjectSelectHdl) ); |