[SSE mobile] Fix Bug 57699

This commit is contained in:
SergeyEzhin 2022-06-23 00:20:16 +04:00
parent 8009cfd918
commit ff5b1cf090
2 changed files with 13 additions and 2 deletions

View file

@ -1086,6 +1086,9 @@ input[type="number"]::-webkit-inner-spin-button {
.view {
transition: .2s height;
}
.popover-angle.on-bottom {
display: none;
}
}
.target-function-list {

View file

@ -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('');
}
}