Delay Padding calculation until the header bar actually exists
This commit is contained in:
parent
d2435777ff
commit
f3731397da
@ -13501,6 +13501,9 @@
|
||||
$.asap((function() {
|
||||
return d.body;
|
||||
}), this.asapInit);
|
||||
$.asap((function() {
|
||||
return Header.bar.parentElement;
|
||||
}), Style.padding);
|
||||
$.on(window, "resize", Style.padding);
|
||||
return $.ready(this.readyInit);
|
||||
},
|
||||
@ -13525,7 +13528,6 @@
|
||||
},
|
||||
readyInit: function() {
|
||||
var exLink;
|
||||
Style.padding();
|
||||
Style.iconPositions();
|
||||
if (exLink = $("#navtopright .exlinksOptionsLink", d.body)) {
|
||||
return $.on(exLink, "click", function() {
|
||||
|
||||
@ -13495,6 +13495,9 @@
|
||||
$.asap((function() {
|
||||
return d.body;
|
||||
}), this.asapInit);
|
||||
$.asap((function() {
|
||||
return Header.bar.parentElement;
|
||||
}), Style.padding);
|
||||
$.on(window, "resize", Style.padding);
|
||||
return $.ready(this.readyInit);
|
||||
},
|
||||
@ -13520,7 +13523,6 @@
|
||||
},
|
||||
readyInit: function() {
|
||||
var exLink;
|
||||
Style.padding();
|
||||
Style.iconPositions();
|
||||
if (exLink = $("#navtopright .exlinksOptionsLink", d.body)) {
|
||||
return $.on(exLink, "click", function() {
|
||||
|
||||
@ -28,6 +28,7 @@ Style =
|
||||
$.asap (-> d.head), Style.observe
|
||||
|
||||
$.asap (-> d.body), @asapInit
|
||||
$.asap (-> Header.bar.parentElement), Style.padding
|
||||
$.on window, "resize", Style.padding
|
||||
$.ready @readyInit
|
||||
|
||||
@ -54,7 +55,6 @@ Style =
|
||||
return
|
||||
|
||||
readyInit: ->
|
||||
Style.padding()
|
||||
Style.iconPositions()
|
||||
if exLink = $ "#navtopright .exlinksOptionsLink", d.body
|
||||
$.on exLink, "click", ->
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user