Simplify list view resizing
This commit is contained in:
parent
3279dddcc3
commit
52b3114970
1 changed files with 1 additions and 7 deletions
|
@ -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');
|
||||
}
|
||||
},
|
||||
|
||||
render: function() {
|
||||
|
|
Loading…
Reference in a new issue