mirror of
https://github.com/discourse/discourse.git
synced 2025-03-09 14:34:35 +00:00
set window height as maximum height of div_resizer
This fixes the issue where a user can resize the div so that grippie is no longer visible and is not reize the div back.
This commit is contained in:
parent
4668cf1d54
commit
c4eb5eee53
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user