Skip to content

Instantly share code, notes, and snippets.

@swannodette
Created November 16, 2008 00:50
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 swannodette/25352 to your computer and use it in GitHub Desktop.
Save swannodette/25352 to your computer and use it in GitHub Desktop.
initResizer: function()
{
// place the resizer above the thing
var resizer = new ShiftSpace.Element('div', {
'id': 'SSConsoleResizer'
});
document.body.grab(resizer);
// added a comment
resizer.makeDraggable({
modifiers: {x:'', y:'bottom'},
invert: true,
onStart: function()
{
SSAddDragDiv();
},
onComplete: function()
{
SSRemoveDragDiv();
}
});
// make the console resizeable
this.element.makeResizable({
handle: resizer,
modifiers: {x:'', y:'height'},
invert: true
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment