From ef2f77339abfc0b4da6b72ee36e26c79c633f4a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Wed, 4 Nov 2015 19:41:12 +0100 Subject: [PATCH] FIX: use '#main' height to check whether screen is full or not --- app/assets/javascripts/discourse/mixins/scrolling.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/mixins/scrolling.js.es6 b/app/assets/javascripts/discourse/mixins/scrolling.js.es6 index 718a770b679..c2997fa3954 100644 --- a/app/assets/javascripts/discourse/mixins/scrolling.js.es6 +++ b/app/assets/javascripts/discourse/mixins/scrolling.js.es6 @@ -19,7 +19,7 @@ const ScrollingDOMMethods = { }, screenNotFull() { - return $(window).height() > $(document).height(); + return $(window).height() > $("#main").height(); } };