sc/source/ui/pagedlg/scuitphfedit.cxx |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit c1405651f6c0c8e519e0aed3f12473499d8ed942
Author: Katarina Behrens <katarina.behr...@cib.de>
Date:   Fri May 8 15:18:34 2015 +0200

    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

diff --git a/sc/source/ui/pagedlg/scuitphfedit.cxx 
b/sc/source/ui/pagedlg/scuitphfedit.cxx
index f5c4fe8..5bfa114 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) );
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to