mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-24 06:08:33 +08:00
Fixed opening in the developer mode.
This commit is contained in:
@ -367,8 +367,9 @@ define([
|
||||
}
|
||||
this.developerHint.toggleClass('hidden', !mode);
|
||||
|
||||
var lastbtn = this.$el.find('button.btn-category:visible:last-of-type');
|
||||
this.minDevPosition = lastbtn.offset().top - lastbtn.offsetParent().offset().top + lastbtn.height() + 20;
|
||||
var btns = this.$el.find('button.btn-category:visible'),
|
||||
lastbtn = (btns.length>0) ? $(btns[btns.length-1]) : null;
|
||||
this.minDevPosition = (lastbtn) ? (lastbtn.offset().top - lastbtn.offsetParent().offset().top + lastbtn.height() + 20) : 20;
|
||||
this.onWindowResize();
|
||||
},
|
||||
|
||||
|
||||
@ -364,8 +364,9 @@ define([
|
||||
}
|
||||
this.developerHint.toggleClass('hidden', !mode);
|
||||
|
||||
var lastbtn = this.$el.find('button.btn-category:visible:last-of-type');
|
||||
this.minDevPosition = lastbtn.offset().top - lastbtn.offsetParent().offset().top + lastbtn.height() + 20;
|
||||
var btns = this.$el.find('button.btn-category:visible'),
|
||||
lastbtn = (btns.length>0) ? $(btns[btns.length-1]) : null;
|
||||
this.minDevPosition = (lastbtn) ? (lastbtn.offset().top - lastbtn.offsetParent().offset().top + lastbtn.height() + 20) : 20;
|
||||
this.onWindowResize();
|
||||
},
|
||||
|
||||
|
||||
@ -336,8 +336,9 @@ define([
|
||||
}
|
||||
this.developerHint.toggleClass('hidden', !mode);
|
||||
|
||||
var lastbtn = this.$el.find('button.btn-category:visible:last-of-type');
|
||||
this.minDevPosition = lastbtn.offset().top - lastbtn.offsetParent().offset().top + lastbtn.height() + 20;
|
||||
var btns = this.$el.find('button.btn-category:visible'),
|
||||
lastbtn = (btns.length>0) ? $(btns[btns.length-1]) : null;
|
||||
this.minDevPosition = (lastbtn) ? (lastbtn.offset().top - lastbtn.offsetParent().offset().top + lastbtn.height() + 20) : 20;
|
||||
this.onWindowResize();
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user