diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-10-29 14:52:37 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-10-29 20:59:08 +0100 |
commit | bdbc439ac6c6a0eb615d55dcaaf0722f3013b812 (patch) | |
tree | f8a729cf80c7a6da2f2fc9aa05bdd5a94fabac08 /sc/source/ui/view/gridwin.cxx | |
parent | 517e093d78012896b54628d6a3092162be3cedec (diff) |
tdf#49813 make autofilter popup at least the width of its column
Change-Id: Idbcf3cdb62fb2886c3b05da721e8d326e0187588
Reviewed-on: https://gerrit.libreoffice.org/81690
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc/source/ui/view/gridwin.cxx')
-rw-r--r-- | sc/source/ui/view/gridwin.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx index 777a9ed220f1..8f5324a7cd00 100644 --- a/sc/source/ui/view/gridwin.cxx +++ b/sc/source/ui/view/gridwin.cxx @@ -629,7 +629,8 @@ void ScGridWindow::LaunchAutoFilterMenu(SCCOL nCol, SCROW nRow) ScDocument* pDoc = pViewData->GetDocument(); mpAutoFilterPopup.disposeAndClear(); - mpAutoFilterPopup.reset(VclPtr<ScCheckListMenuWindow>::Create(this, pDoc)); + int nColWidth = ScViewData::ToPixel(pDoc->GetColWidth(nCol, nTab), pViewData->GetPPTX()); + mpAutoFilterPopup.reset(VclPtr<ScCheckListMenuWindow>::Create(this, pDoc, nColWidth)); // Avoid flicker when hovering over the menu items. if (!IsNativeControlSupported(ControlType::Pushbutton, ControlPart::Focus)) |