Skip to content

Instantly share code, notes, and snippets.

@davglass
Created April 3, 2009 13:25
Show Gist options
  • Save davglass/89747 to your computer and use it in GitHub Desktop.
Save davglass/89747 to your computer and use it in GitHub Desktop.
if ((typeof res != "undefined" || res != null) && res instanceof YAHOO.util.Resize) {
//Set the wrap element on the resize back to zIndex 0
Dom.setStyle(res.getWrapEl(), 'zIndex', 0);
res.destroy();
}
res = new YAHOO.util.Resize(el, {
handles: ['br', 'bl', 'tr', 'tl'],
knobHandles: true,
height: '30px',
width: '30px',
proxy: true,
draggable: true,
animate: true,
animateDuration: .75,
animateEasing: YAHOO.util.Easing.backBoth
});
//Set the wrap element on the resize to zIndex 1 to bring it to the top
Dom.setStyle(res.getWrapEl(), 'zIndex', 1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment