Skip to content

Instantly share code, notes, and snippets.

@joeauty
Created December 7, 2010 22:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joeauty/732555 to your computer and use it in GitHub Desktop.
Save joeauty/732555 to your computer and use it in GitHub Desktop.
var newimage = new Image();
newimage.src = thumbpic;
Y.one('#photoswrapperproxyinner').append('<div class="photo newimage"><img src = "' + newimage.src + '" /></div>');
var imagewait = setInterval(function() {
if (parseInt(Y.one('#photoswrapperproxyinner .newimage').getComputedStyle('width')) == newimage.width && parseInt(Y.one('#photoswrapperproxyinner .newimage').getComputedStyle('height')) == newimage.height) {
Y.one('#photoswrapperproxyinner .newimage').removeClass('newimage');
clearInterval(imagewait);
var photogallery = new Y.Photogallery();
photogallery.resizeSpace();
}
}, 100);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment