Show More
@@ -73,14 +73,14 define(["notebook/js/widget"], function(widget_manager) { | |||
|
73 | 73 | this.$window = $('<div />') |
|
74 | 74 | .addClass('modal widget-modal') |
|
75 | 75 | .appendTo($('#notebook-container')); |
|
76 |
|
|
|
76 | this.$title_bar = $('<div />') | |
|
77 | 77 | .addClass('popover-title') |
|
78 | 78 | .appendTo(this.$window); |
|
79 | 79 | var that = this; |
|
80 | 80 | $('<button />') |
|
81 | 81 | .addClass('close') |
|
82 | 82 | .html('×') |
|
83 | .appendTo(title_bar) | |
|
83 | .appendTo(this.$title_bar) | |
|
84 | 84 | .click(function(){ |
|
85 | 85 | that.hide(); |
|
86 | 86 | event.stopPropagation(); |
@@ -88,7 +88,7 define(["notebook/js/widget"], function(widget_manager) { | |||
|
88 | 88 | this.$title = $('<div />') |
|
89 | 89 | .addClass('widget-modal-title') |
|
90 | 90 | .html(' ') |
|
91 | .appendTo(title_bar); | |
|
91 | .appendTo(this.$title_bar); | |
|
92 | 92 | this.$body = $('<div />') |
|
93 | 93 | .addClass('modal-body') |
|
94 | 94 | .addClass('widget-container') |
@@ -104,6 +104,10 define(["notebook/js/widget"], function(widget_manager) { | |||
|
104 | 104 | |
|
105 | 105 | this.$window.draggable({handle: '.popover-title', snap: '#notebook, .modal', snapMode: 'both'}); |
|
106 | 106 | this.$window.resizable(); |
|
107 | this.$window.on('resize', function(){ | |
|
108 | that.$body.outerHeight(that.$window.innerHeight() - that.$title_bar.outerHeight()); | |
|
109 | }) | |
|
110 | ||
|
107 | 111 | this._shown_once = false; |
|
108 | 112 | }, |
|
109 | 113 |
General Comments 0
You need to be logged in to leave comments.
Login now