Guest User

Untitled

a guest
Feb 20th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. initResizer: function()
  2. {
  3. // place the resizer above the thing
  4. var resizer = new ShiftSpace.Element('div', {
  5. 'id': 'SSConsoleResizer'
  6. });
  7. document.body.grab(resizer);
  8.  
  9. // added a comment
  10.  
  11. resizer.makeDraggable({
  12. modifiers: {x:'', y:'bottom'},
  13. invert: true,
  14. onStart: function()
  15. {
  16. SSAddDragDiv();
  17. },
  18. onComplete: function()
  19. {
  20. SSRemoveDragDiv();
  21. }
  22. });
  23.  
  24. // make the console resizeable
  25. this.element.makeResizable({
  26. handle: resizer,
  27. modifiers: {x:'', y:'height'},
  28. invert: true
  29. });
  30. }
Add Comment
Please, Sign In to add comment