Skip to content

Commit

Permalink
fix: resize when updated
Browse files Browse the repository at this point in the history
  • Loading branch information
hugomallet committed Mar 15, 2013
1 parent c619a83 commit e272507
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/scripts/views/article-view.js
Expand Up @@ -18,6 +18,10 @@ gravityBlog.Views.articleView = Backbone.View.extend({

render: function() {
this.$el.html(this.template(this.model.toJSON()));
this.trigger('resize', {
width: this.$el.outerWidth(),
height: this.$el.outerHeight()
});
return this;
},

Expand Down

0 comments on commit e272507

Please sign in to comment.