Permalink
Browse files

It doesn't work perfectly, but try to get it to scroll to top on arti…

…cle change.
  • Loading branch information...
1 parent d04e431 commit 2183d2afb36c2c4bc6fc6e99ba2b85ab54399c17 @ialexi ialexi committed Apr 18, 2010
Showing with 7 additions and 0 deletions.
  1. +7 −0 apps/hedwig/views/article_view.js
@@ -51,6 +51,13 @@ Hedwig.ArticleView = SC.View.extend(Hedwig.TouchHelper, {
contentView: SC.ScrollView.design({
borderStyle: SC.BORDER_NONE,
+ htmlContent: "",
+ htmlContentBinding: "Hedwig.articleController.html",
+ htmlContentDidChange: function() {
+ console.error("CDC");
+ this.scrollTo(0,1);
+ }.observes("htmlContent"),
+
contentView: SC.StaticContentView.design({
contentBinding: "Hedwig.articleController.html",
didUpdateLayer: function() {

0 comments on commit 2183d2a

Please sign in to comment.