wait for grid to not be dirty until initializing bbox

This commit is contained in:
Til Schmitter 2026-05-09 13:41:08 +02:00
parent 643d41f7cf
commit 657be39132
2 changed files with 2 additions and 6 deletions

View file

@ -1376,9 +1376,8 @@ window.baguetteBox = (function () {
function init(){ function init(){
if(thegrid != undefined){ if(thegrid != undefined && !thegrid.dirty){
thegrid.bagit(); thegrid.bagit();
thegrid.bag_loaded();
} }
else{ else{
console.log('wait for grid init'); console.log('wait for grid init');

View file

@ -6562,11 +6562,8 @@ window.thegrid = (function () {
} }
}); });
r.bbox_opts = br[1]; r.bbox_opts = br[1];
};
r.bag_loaded = function () {
r.bbox = true; r.bbox = true;
} };
r.onhide = function () { r.onhide = function () {
afilt.apply(); afilt.apply();