File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Resizing div with drag

 
Tristan Van Poucke
Ranch Hand
Posts: 47
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have been working on this way to resize a div by dragging a part of it down.
I only want the div to resize 20px at a time and for this I have used following method:



_startY : Y position of mouse where started dragging.
_Resize : div that is to be resized.
_lastStop: position of last resize.
e.clientY: current position of mouse.

This works perfectly. But when I scroll the page down a bit, and start to resize the div, pulling it down , it gets smaller first and THEN it gets bigger. Does anyone have any Idea why this is?
[ October 01, 2008: Message edited by: Bear Bibeault ]
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic