Permalink
Browse files

fix: resize when updated

  • Loading branch information...
hugomallet committed Mar 15, 2013
1 parent c619a83 commit e272507beb5475c66e52327602bb82e7862a1e2e
Showing with 4 additions and 0 deletions.
  1. +4 −0 app/scripts/views/article-view.js
@@ -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;
},

0 comments on commit e272507

Please sign in to comment.