From c1405651f6c0c8e519e0aed3f12473499d8ed942 Mon Sep 17 00:00:00 2001 From: Katarina Behrens Date: Fri, 8 May 2015 15:18:34 +0200 Subject: 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 --- sc/source/ui/pagedlg/scuitphfedit.cxx | 6 ++++++ 1 file changed, 6 insertions(+) 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) ); -- cgit v1.2.3