Merge pull request #134 from abdulsattar/master

Set window height as maximum height of div_resizer
This commit is contained in:
Robin Ward 2013-02-12 08:45:52 -08:00
commit d90235477c
1 changed files with 1 additions and 0 deletions

View File

@ -29,6 +29,7 @@
thisMousePos = mousePosition(e).y thisMousePos = mousePosition(e).y
size = originalDivHeight + (originalPos - thisMousePos) size = originalDivHeight + (originalPos - thisMousePos)
lastMousePos = thisMousePos lastMousePos = thisMousePos
size = Math.min(size, $(window).height())
size = Math.max(min, size) size = Math.max(min, size)
div.height size + "px" div.height size + "px"
endDrag e,opts if size < min endDrag e,opts if size < min