From 52b311497051a65f8ffbc12f57b613b4ac8e7148 Mon Sep 17 00:00:00 2001 From: lilia Date: Wed, 11 Feb 2015 23:07:59 -0800 Subject: [PATCH] Simplify list view resizing --- js/views/list_view.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/js/views/list_view.js b/js/views/list_view.js index fce35ab4..7a3b29ca 100644 --- a/js/views/list_view.js +++ b/js/views/list_view.js @@ -48,13 +48,7 @@ var Whisper = Whisper || {}; resize: function() { var height = window.innerHeight - $('#header').height() - $('#footer').height(); - if (this.$el.height() > height) { - this.$el.css('height', height + 'px'); - this.$el.css('overflow-y', 'scroll'); - } else { - this.$el.css('height', 'auto'); - this.$el.css('overflow-y', 'auto'); - } + this.$el.css('height', height + 'px'); }, render: function() {