summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKatarina Behrens <Katarina.Behrens@cib.de>2015-05-08 15:18:34 +0200
committerKatarina Behrens <Katarina.Behrens@cib.de>2015-05-08 15:31:56 +0200
commitc1405651f6c0c8e519e0aed3f12473499d8ed942 (patch)
treec437b0560cd4e3bbbb3fea1cd623fa1bd3dd6fc2
parent358a7ca728dced8ca41ad79a7c54a6c2408807b1 (diff)
tdf#90257: Prevent dialog from growing out of the screen
when large font sizes are used. Set size request on 1 edit widget (+- match what used to be in the old .src file), the remaining two are in the same grid, so this will hopefull do the trick Change-Id: I3ca27ea4d037cf8877f022c1ee5ed7f348b0cfdd
-rw-r--r--sc/source/ui/pagedlg/scuitphfedit.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/sc/source/ui/pagedlg/scuitphfedit.cxx b/sc/source/ui/pagedlg/scuitphfedit.cxx
index f5c4fe85799b..5bfa114ef7c3 100644
--- a/sc/source/ui/pagedlg/scuitphfedit.cxx
+++ b/sc/source/ui/pagedlg/scuitphfedit.cxx
@@ -132,6 +132,12 @@ 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
+ Size aSize = LogicToPixel(Size(80, 120), MAP_APPFONT);
+ m_pWndLeft->set_width_request(aSize.Width());
+ m_pWndLeft->set_height_request(aSize.Height());
+
m_pWndLeft->SetObjectSelectHdl( LINK(this,ScHFEditPage,ObjectSelectHdl) );
m_pWndCenter->SetObjectSelectHdl( LINK(this,ScHFEditPage,ObjectSelectHdl) );
m_pWndRight->SetObjectSelectHdl( LINK(this,ScHFEditPage,ObjectSelectHdl) );