Show More
@@ -125,12 +125,14 define(["notebook/js/widget"], function(widget_manager) { | |||||
125 | }, |
|
125 | }, | |
126 |
|
126 | |||
127 | show: function() { |
|
127 | show: function() { | |
128 | this.$window.show(); |
|
|||
129 | this.$show_button.addClass('btn-info'); |
|
128 | this.$show_button.addClass('btn-info'); | |
130 | this.$window.css("top", Math.max(0, (($(window).height() - this.$window.outerHeight()) / 2) + |
|
129 | ||
131 | $(window).scrollTop()) + "px"); |
|
130 | this.$window.show(); | |
132 | this.$window.css("left", Math.max(0, (($(window).width() - this.$window.outerWidth()) / 2) + |
|
131 | this.$window.css("positon", "absolute") | |
133 | $(window).scrollLeft()) + "px"); |
|
132 | this.$window.css("top", Math.max(0, (($('body').outerHeight() - this.$window.outerHeight()) / 2) + | |
|
133 | $(window).scrollTop()) + "px"); | |||
|
134 | this.$window.css("left", Math.max(0, (($('body').outerWidth() - this.$window.outerWidth()) / 2) + | |||
|
135 | $(window).scrollLeft()) + "px"); | |||
134 | }, |
|
136 | }, | |
135 |
|
137 | |||
136 | update: function(){ |
|
138 | update: function(){ |
General Comments 0
You need to be logged in to leave comments.
Login now