From c4eb5eee538c43e2a51661a9704e09d873817159 Mon Sep 17 00:00:00 2001 From: Abdulsattar Mohammed Date: Tue, 12 Feb 2013 13:56:37 +0530 Subject: [PATCH] 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. --- .../javascripts/discourse/components/div_resizer.js.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/app/assets/javascripts/discourse/components/div_resizer.js.coffee b/app/assets/javascripts/discourse/components/div_resizer.js.coffee index 19cf0918bc2..0b4c3683343 100644 --- a/app/assets/javascripts/discourse/components/div_resizer.js.coffee +++ b/app/assets/javascripts/discourse/components/div_resizer.js.coffee @@ -29,6 +29,7 @@ thisMousePos = mousePosition(e).y size = originalDivHeight + (originalPos - thisMousePos) lastMousePos = thisMousePos + size = Math.min(size, $(window).height()) size = Math.max(min, size) div.height size + "px" endDrag e,opts if size < min