summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/gridwin2.cxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@suse.com>2011-11-02 23:44:00 -0400
committerKohei Yoshida <kohei.yoshida@suse.com>2011-11-04 22:40:25 -0400
commitc524e1935668f40415927a365e39a0a1c75d91c5 (patch)
tree671d47af211cd7dcf8c4c39d7093742f40708b7e /sc/source/ui/view/gridwin2.cxx
parent9508d11845aac62ac8a62c8a01f37726cf2b21a1 (diff)
Calculate window size and geometries of controls based on menu items.
This makes the popup window more flexible and adjust to a varying number of menu items. This is necessary now that we use this popup in two different places (autofilter and pivot table field popup) with different menu item configurations.
Diffstat (limited to 'sc/source/ui/view/gridwin2.cxx')
-rw-r--r--sc/source/ui/view/gridwin2.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/view/gridwin2.cxx b/sc/source/ui/view/gridwin2.cxx
index aa0ecc5d49ec..f791a44a35cc 100644
--- a/sc/source/ui/view/gridwin2.cxx
+++ b/sc/source/ui/view/gridwin2.cxx
@@ -539,7 +539,7 @@ void ScGridWindow::DPLaunchFieldPopupMenu(
aCellRect.SetPos(Point(rScrPos.X() + nXOffset, rScrPos.Y()));
}
mpDPFieldPopup->SetPopupModeEndHdl( LINK(this, ScGridWindow, PopupModeEndHdl) );
- mpDPFieldPopup->StartPopupMode(aCellRect, (FLOATWIN_POPUPMODE_DOWN | FLOATWIN_POPUPMODE_GRABFOCUS));
+ mpDPFieldPopup->launch(aCellRect);
}
void ScGridWindow::UpdateDPFromFieldPopupMenu()