colorbox
colorbox copied to clipboard
bug in ie that the size of cboxContent compute error
when I click a label in ie, then alert colorbox, but the position of colorbox is not center,the center position is the left ,top of colorbox;because the size of the cboxLoadedContent is zero when compute cboxContent size.this is a ie bug, ie compute the element size 0 when element is not load finish,but it can compute right when element is load finish;I has two way to finish this bug. 1: you now do if (settings.get('reposition')) { setTimeout(function () { // small delay before binding onresize due to an IE8 bug. $window.bind('resize.' + prefix, publicMethod.position); }, 1); }; bug this is a question,element may be not load finish after 1 millisecond,we can add millsecond to Reduce probability of element not load finish.but millsecond add too much,it well bad to user experience. 2:we can recompute when after a little more millseconds and the size of cboxContent less than cboxLoadedContent ;