This is needed to calculate the page sizes correct by javascript and apply scroll events or somthing like this.
I tested it to replace the folowing:
$(window).bind('resize.omegamediaqueries', function () {
setCurrentLayout(dummy.css('z-index'));
}).load(function () {
$(this).trigger('resize.omegamediaqueries');
});
by
$(window).bind('resize.omegamediaqueries', function () {
setCurrentLayout(dummy.css('z-index'));
$(this).trigger('resize.omegamediaqueries.done');
}).load(function () {
$(this).trigger('resize.omegamediaqueries');
});
For me this works fine and I got no longer race conditions between load event and the manipulation of the media query classes.
Thank you.
BR Thomas
Active
3.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.