Simplify list view resizing

This commit is contained in:
lilia 2015-02-11 23:07:59 -08:00
parent 3279dddcc3
commit 52b3114970
1 changed files with 1 additions and 7 deletions

View File

@ -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() {