Merge pull request #918 from ONLYOFFICE/fix/fix-bugs-on-mobiles
Fix/fix bugs on mobiles
This commit is contained in:
commit
d12011404d
|
@ -510,6 +510,10 @@ class MainController extends Component {
|
|||
}
|
||||
|
||||
bindEvents() {
|
||||
$$(window).on('resize', () => {
|
||||
this.api.Resize();
|
||||
});
|
||||
|
||||
this.api.asc_registerCallback('asc_onDocumentUpdateVersion', this.onUpdateVersion.bind(this));
|
||||
this.api.asc_registerCallback('asc_onServerVersion', this.onServerVersion.bind(this));
|
||||
this.api.asc_registerCallback('asc_onDocumentName', this.onDocumentName.bind(this));
|
||||
|
|
|
@ -76,7 +76,7 @@ const ToolbarController = inject('storeAppOptions', 'users', 'storeReview')(prop
|
|||
{
|
||||
text: _t.leaveButtonText,
|
||||
onClick: function() {
|
||||
goBack();
|
||||
goBack(true);
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -86,7 +86,7 @@ const ToolbarController = inject('storeAppOptions', 'users', 'storeReview')(prop
|
|||
]
|
||||
}).open();
|
||||
} else {
|
||||
goBack();
|
||||
goBack(true);
|
||||
}
|
||||
};
|
||||
const goBack = (current) => {
|
||||
|
|
|
@ -293,6 +293,10 @@ class MainController extends Component {
|
|||
}
|
||||
|
||||
bindEvents () {
|
||||
$$(window).on('resize', () => {
|
||||
this.api.Resize();
|
||||
});
|
||||
|
||||
this.api.asc_registerCallback('asc_onDocumentContentReady', this.onDocumentContentReady.bind(this));
|
||||
this.api.asc_registerCallback('asc_onDocumentUpdateVersion', this.onUpdateVersion.bind(this));
|
||||
this.api.asc_registerCallback('asc_onServerVersion', this.onServerVersion.bind(this));
|
||||
|
|
|
@ -75,7 +75,7 @@ const ToolbarController = inject('storeAppOptions', 'users')(props => {
|
|||
{
|
||||
text: _t.leaveButtonText,
|
||||
onClick: function() {
|
||||
goBack();
|
||||
goBack(true);
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -85,7 +85,7 @@ const ToolbarController = inject('storeAppOptions', 'users')(props => {
|
|||
]
|
||||
}).open();
|
||||
} else {
|
||||
goBack();
|
||||
goBack(true);
|
||||
}
|
||||
};
|
||||
const goBack = (current) => {
|
||||
|
|
|
@ -292,6 +292,10 @@ class MainController extends Component {
|
|||
}
|
||||
|
||||
bindEvents() {
|
||||
$$(window).on('resize', () => {
|
||||
this.api.asc_Resize();
|
||||
});
|
||||
|
||||
this.api.asc_registerCallback('asc_onDocumentUpdateVersion', this.onUpdateVersion.bind(this));
|
||||
this.api.asc_registerCallback('asc_onServerVersion', this.onServerVersion.bind(this));
|
||||
this.api.asc_registerCallback('asc_onPrintUrl', this.onPrintUrl.bind(this));
|
||||
|
|
|
@ -56,9 +56,10 @@ const Statusbar = inject('sheets', 'storeAppOptions', 'users')(props => {
|
|||
}, []);
|
||||
|
||||
const onApiActiveSheetChanged = (index) => {
|
||||
// console.log(index);
|
||||
sheets.setActiveWorksheet(index);
|
||||
Common.Notifications.trigger('sheet:active', index);
|
||||
if (index < sheets.sheets.length) {
|
||||
sheets.setActiveWorksheet(index);
|
||||
Common.Notifications.trigger('sheet:active', index);
|
||||
}
|
||||
}
|
||||
|
||||
const onApiHideTabContextMenu = () => {
|
||||
|
|
|
@ -76,7 +76,7 @@ const ToolbarController = inject('storeAppOptions', 'users', 'storeSpreadsheetIn
|
|||
{
|
||||
text: _t.leaveButtonText,
|
||||
onClick: function() {
|
||||
goBack();
|
||||
goBack(true);
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -86,7 +86,7 @@ const ToolbarController = inject('storeAppOptions', 'users', 'storeSpreadsheetIn
|
|||
]
|
||||
}).open();
|
||||
} else {
|
||||
goBack();
|
||||
goBack(true);
|
||||
}
|
||||
};
|
||||
const goBack = (current) => {
|
||||
|
|
Loading…
Reference in a new issue