From ff5b1cf090f986e976e66830d35d2a1796e66519 Mon Sep 17 00:00:00 2001 From: SergeyEzhin Date: Thu, 23 Jun 2022 00:20:16 +0400 Subject: [PATCH] [SSE mobile] Fix Bug 57699 --- apps/common/mobile/resources/less/common.less | 3 +++ .../mobile/src/controller/CellEditor.jsx | 12 ++++++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/apps/common/mobile/resources/less/common.less b/apps/common/mobile/resources/less/common.less index b54e508d6..a46dc527a 100644 --- a/apps/common/mobile/resources/less/common.less +++ b/apps/common/mobile/resources/less/common.less @@ -1086,6 +1086,9 @@ input[type="number"]::-webkit-inner-spin-button { .view { transition: .2s height; } + .popover-angle.on-bottom { + display: none; + } } .target-function-list { diff --git a/apps/spreadsheeteditor/mobile/src/controller/CellEditor.jsx b/apps/spreadsheeteditor/mobile/src/controller/CellEditor.jsx index 4d3e89c39..9b67440ba 100644 --- a/apps/spreadsheeteditor/mobile/src/controller/CellEditor.jsx +++ b/apps/spreadsheeteditor/mobile/src/controller/CellEditor.jsx @@ -93,14 +93,22 @@ const CellEditor = inject("storeFunctions")(observer(props => { return {name, type, descr, caption, args}; }); - - setHintArr(hintArr); + setFuncArr(funcArr); + setHintArr(hintArr); f7.popover.open('#idx-functions-list', '#idx-list-target'); + + const listTarget = document.querySelector('#idx-list-target'); + const rect = listTarget.getBoundingClientRect(); + const popoverList = document.querySelector('#idx-functions-list'); + + popoverList.style.top = `${rect.bottom}px`; + popoverList.style.left = `${rect.left}px`; } else { f7.popover.close('#idx-functions-list'); setFuncArr(''); + setHintArr(''); } }