Show More
@@ -120,9 +120,10 b' define(["notebook/js/widget"], function(widget_manager) {' | |||||
120 | show: function() { |
|
120 | show: function() { | |
121 | this.$window.show(); |
|
121 | this.$window.show(); | |
122 | this.$show_button.addClass('btn-info'); |
|
122 | this.$show_button.addClass('btn-info'); | |
123 | var position = this.$show_button.offset(); |
|
123 | this.$window.css("top", Math.max(0, (($(window).height() - this.$window.outerHeight()) / 2) + | |
124 | this.$window.css('left', position.left + this.$show_button.outerWidth()); |
|
124 | $(window).scrollTop()) + "px"); | |
125 | this.$window.css('top', position.top); |
|
125 | this.$window.css("left", Math.max(0, (($(window).width() - this.$window.outerWidth()) / 2) + | |
|
126 | $(window).scrollLeft()) + "px"); | |||
126 | }, |
|
127 | }, | |
127 |
|
128 | |||
128 | update: function(){ |
|
129 | update: function(){ |
General Comments 0
You need to be logged in to leave comments.
Login now