summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>2021-09-21 16:28:30 +0200
committerThorsten Behrens <thorsten.behrens@allotropia.de>2021-09-29 16:15:34 +0200
commit96b1f4bab6144a2a3ef4d16b1041448374a7ac8b (patch)
tree79e8ed3b3d7229d0aa0207623bd4c10ca8a12cc1 /sc
parentd1df1b71cffa91c791b2b8c26ef1df241d301742 (diff)
Fix color filter popup position
popup was wrongly placed when dropdown was not in the first column Change-Id: Id7170df233148564cba2fe2d498194b9e2b0161f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122396 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122580 Tested-by: Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de> Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/view/gridwin.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx
index 7a84eb74405c..850edb09aa8b 100644
--- a/sc/source/ui/view/gridwin.cxx
+++ b/sc/source/ui/view/gridwin.cxx
@@ -914,7 +914,8 @@ void ScGridWindow::UpdateAutoFilterFromMenu(AutoFilterMode eMode)
}
i++;
}
- Point pos(mpAutoFilterPopup->GetSizePixel().getWidth(), 150);
+ Point pos(mpAutoFilterPopup->GetPosPixel());
+ pos.Move(150, 0);
sal_uInt16 nSelected = pColorMenu->Execute(this, pos);
pColorMenu.disposeAndClear();
mpAutoFilterPopup->terminateAllPopupMenus();