Fix scroll_to_bottom

This commit is contained in:
Jonathan Frederic 2013-11-22 19:49:40 +00:00
parent 02db32fe9a
commit 4333c84907
2 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ define(["notebook/js/widget"], function(widget_manager){
this.$el_to_style = this.$textbox; // Set default element to style
this.update(); // Set defaults.
this.on_msg();
this.model.on_msg($.proxy(this._handle_textarea_msg, this));
},

View File

@ -40,7 +40,7 @@ class StringWidget(Widget):
def scroll_to_bottom(self):
self._comm.send({"method": "scroll_to_bottom"})
self.send({"method": "scroll_to_bottom"})
def _handle_string_msg(self, content):