Fix conversation resize bug
Fix behavior where resizing a message detail screen would result in a mis-sized conversation view when exiting the message detail.
This commit is contained in:
parent
7d9490e503
commit
239b87a1fa
1 changed files with 5 additions and 10 deletions
|
@ -96,10 +96,7 @@
|
|||
var view = new Whisper.GroupMemberList({ model: this.model });
|
||||
this.$el.hide();
|
||||
view.$el.insertAfter(this.el);
|
||||
this.listenTo(view, 'back', function() {
|
||||
view.remove();
|
||||
this.$el.show();
|
||||
}.bind(this));
|
||||
this.listenBack(view);
|
||||
},
|
||||
|
||||
openInbox: function() {
|
||||
|
@ -126,10 +123,7 @@
|
|||
});
|
||||
this.$el.hide();
|
||||
view.render().$el.insertAfter(this.el);
|
||||
this.listenTo(view, 'back', function() {
|
||||
view.remove();
|
||||
this.$el.show();
|
||||
}.bind(this));
|
||||
this.listenBack(view);
|
||||
}.bind(this));
|
||||
}.bind(this));
|
||||
}
|
||||
|
@ -147,10 +141,11 @@
|
|||
},
|
||||
|
||||
listenBack: function(view) {
|
||||
this.listenTo(view, 'back', function() {
|
||||
this.listenToOnce(view, 'back', function(e) {
|
||||
view.remove();
|
||||
this.$el.show();
|
||||
});
|
||||
this.$el.trigger('force-resize');
|
||||
}.bind(this));
|
||||
},
|
||||
|
||||
closeMenu: function(e) {
|
||||
|
|
Loading…
Reference in a new issue