mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-24 11:10:56 +08:00
Merge pull request #2720 from ONLYOFFICE/fix/bugfix
Fix window width when change browser zoom from 250% to 100%
This commit is contained in:
@ -126,6 +126,14 @@ define([
|
||||
this.content_panels = $window.find('.settings-panel');
|
||||
if (this.btnsCategory.length>0)
|
||||
this.btnsCategory[0].toggle(true, true);
|
||||
|
||||
var onMainWindowResize = function(){
|
||||
$window.width(((menu_panel.length>0) ? menu_panel.width() : 0) + cnt_panel.outerWidth() + 2);
|
||||
};
|
||||
$(window).on('resize', onMainWindowResize);
|
||||
this.on('close', function() {
|
||||
$(window).off('resize', onMainWindowResize);
|
||||
});
|
||||
},
|
||||
|
||||
setHeight: function(height) {
|
||||
|
||||
Reference in New Issue
Block a user