summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>2021-09-21 16:28:30 +0200
committerSamuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>2021-09-23 07:53:38 +0200
commite752ce56b51c832dbea1e7f20e3b6671d99df990 (patch)
tree32eb20d8bbe255c70d69cf61089e4e2c8be53671 /sc
parent0b810cc0f04241e644c82ba8bdad6a075b964118 (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>
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 250b1152f114..16ce773a287b 100644
--- a/sc/source/ui/view/gridwin.cxx
+++ b/sc/source/ui/view/gridwin.cxx
@@ -956,7 +956,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();
rControl.terminateAllPopupMenus();