mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-26 08:37:33 +08:00
[mobile] fix popover menu position
This commit is contained in:
@ -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) {
|
||||
|
||||
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user