Fixed opening in the developer mode.
This commit is contained in:
parent
62e722ca60
commit
24661d9d67
|
@ -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();
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue