3 * resizehandle.js (c) Fil 2007-2011, plugin pour jQuery
4 * @ http://www.jquery.info/spip.php?article44
5 * Distribue sous licence GNU/LGPL et MIT
7 $.fn
.resizehandle = function() {
8 return this.each(function() {
11 $('<div class="resizehandle"></div>')
12 .css({height
:'16px',width
:Math
.max(me
.width()-4,10)}) // bug MSIE si 100%
13 .bind('mousedown', function(e
) {
16 var moveHandler = function(e
) {
18 .height(Math
.max(20, e
.clientY
+ h
- y
));
20 var upHandler = function(e
) {
22 .unbind('mousemove',moveHandler
)
23 .unbind('mouseup',upHandler
);
26 .bind('mousemove', moveHandler
)
27 .bind('mouseup', upHandler
);