sc/source/ui/cctrl/checklistmenu.cxx | 7 +++++++ 1 file changed, 7 insertions(+)
New commits: commit d3289425003bf1a8d074dc82d80f50dbdd084658 Author: Kohei Yoshida <kohei.yosh...@gmail.com> Date: Thu May 17 22:42:31 2012 -0400 Make the window taller as appropriate. Change-Id: I99688bdfd91d2591def46829b7579f2fada86f53 diff --git a/sc/source/ui/cctrl/checklistmenu.cxx b/sc/source/ui/cctrl/checklistmenu.cxx index 4e524d5..f1f8acd 100644 --- a/sc/source/ui/cctrl/checklistmenu.cxx +++ b/sc/source/ui/cctrl/checklistmenu.cxx @@ -1035,6 +1035,13 @@ void ScCheckListMenuWindow::packWindow() // Widen the window to fit the menu items. maWndSize.Width() = maMenuSize.Width(); + // Set proper window height based on the number of menu items. + if (maWndSize.Height() < maMenuSize.Height()*2.8) + maWndSize.Height() = maMenuSize.Height()*2.8; + + // TODO: Make sure the window height never exceeds the height of the + // screen. Also do adjustment based on the number of check box items. + SetOutputSizePixel(maWndSize); const StyleSettings& rStyle = GetSettings().GetStyleSettings(); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits