Show More
@@ -125,11 +125,13 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 | ||
|
130 | this.$window.show(); | |||
|
131 | this.$window.css("positon", "absolute") | |||
|
132 | this.$window.css("top", Math.max(0, (($('body').outerHeight() - this.$window.outerHeight()) / 2) + | |||
131 |
|
|
133 | $(window).scrollTop()) + "px"); | |
132 |
this.$window.css("left", Math.max(0, (($( |
|
134 | this.$window.css("left", Math.max(0, (($('body').outerWidth() - this.$window.outerWidth()) / 2) + | |
133 |
|
|
135 | $(window).scrollLeft()) + "px"); | |
134 | }, |
|
136 | }, | |
135 |
|
137 |
General Comments 0
You need to be logged in to leave comments.
Login now