[mobile] fix popover menu position

This commit is contained in:
Maxim Kadushkin 2021-01-14 20:43:46 +03:00
parent 0126f6636a
commit 11fa4aa335
2 changed files with 9 additions and 0 deletions

View file

@ -1,6 +1,7 @@
import React, {Component} from 'react';
import {inject} from "mobx-react";
import { f7 } from "framework7-react";
import { withTranslation } from 'react-i18next';
import CollaborationController from '../../../../common/mobile/lib/controller/Collaboration.jsx';
import { onAdvancedOptions } from './settings/Download.jsx';
@ -87,6 +88,7 @@ class MainController extends Component {
}
this.api.asc_registerCallback('asc_onGetEditorPermissions', onEditorPermissions);
this.api.asc_registerCallback('asc_onDocumentContentReady', onDocumentContentReady);
// this.api.asc_registerCallback('asc_onLicenseChanged', _.bind(this.onLicenseChanged, this));
// this.api.asc_registerCallback('asc_onRunAutostartMacroses', _.bind(this.onRunAutostartMacroses, this));
this.api.asc_setDocInfo(docInfo);
@ -129,6 +131,11 @@ class MainController extends Component {
this.api.Resize();
};
const onDocumentContentReady = () => {
Common.Gateway.documentReady();
f7.emit('resize');
};
const _process_array = (array, fn) => {
let results = [];
return array.reduce(function(p, item) {

View file

@ -1,6 +1,7 @@
import React, { Component } from 'react'
import { inject } from "mobx-react";
import { f7 } from 'framework7-react';
import { withTranslation } from 'react-i18next';
import CollaborationController from '../../../../common/mobile/lib/controller/Collaboration.jsx'
@ -227,6 +228,7 @@ class MainController extends Component {
me.api.asc_showWorksheet(me.api.asc_getActiveWorksheetIndex());
Common.Gateway.documentReady();
f7.emit('resize');
}
_onOpenDocumentProgress(progress) {