diff options
author | Rüdiger Timm <rt@openoffice.org> | 2005-03-29 13:35:04 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2005-03-29 13:35:04 +0000 |
commit | 6dc3b656a1a2ce568caa6e151ef3f556d63c90e3 (patch) | |
tree | 9e110cbbfcf9fd10f823630e3c4aad0df5084798 /sd/source/ui/toolpanel/TaskPaneViewShell.cxx | |
parent | 0c0c75d0e509daa4e6256b4c30610345f51c98dd (diff) |
INTEGRATION: CWS perform02 (1.8.8); FILE MERGED
2005/02/23 16:14:48 ssa 1.8.8.1: keep drop down open after releasing the mouse button
Diffstat (limited to 'sd/source/ui/toolpanel/TaskPaneViewShell.cxx')
-rw-r--r-- | sd/source/ui/toolpanel/TaskPaneViewShell.cxx | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sd/source/ui/toolpanel/TaskPaneViewShell.cxx b/sd/source/ui/toolpanel/TaskPaneViewShell.cxx index 955262bb30a2..c761d8172ce2 100644 --- a/sd/source/ui/toolpanel/TaskPaneViewShell.cxx +++ b/sd/source/ui/toolpanel/TaskPaneViewShell.cxx @@ -2,9 +2,9 @@ * * $RCSfile: TaskPaneViewShell.cxx,v $ * - * $Revision: 1.9 $ + * $Revision: 1.10 $ * - * last change: $Author: kz $ $Date: 2005-03-18 16:57:39 $ + * last change: $Author: rt $ $Date: 2005-03-29 14:35:04 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -447,9 +447,10 @@ IMPL_LINK(TaskPaneViewShell, ToolboxClickHandler, ToolBox*, pToolBox) pMenu->SetSelectHdl ( LINK(this, TaskPaneViewShell, MenuSelectHandler)); - Point aMenuPosition = pToolBox->GetItemRect(mnMenuId).BottomLeft(); - aMenuPosition += pToolBox->GetPosPixel(); - pMenu->Execute (pDockingWindow, aMenuPosition); + // pass toolbox button rect so the menu can stay open on button up + Rectangle aRect = pToolBox->GetItemRect(mnMenuId); + aRect.SetPos(pToolBox->GetPosPixel() ); + pMenu->Execute (pDockingWindow, aRect, POPUPMENU_EXECUTE_DOWN); } return 0; |