35 |
34 |
36 if (this._height !== undefined) |
35 if (this._height !== undefined) |
37 this.selector.css("height", this._height); |
36 this.selector.css("height", this._height); |
38 }; |
37 }; |
39 |
38 |
40 /* we need this special setter because of a chicken and egg problem : |
39 /** |
|
40 Set the popcorn instance used by the manager. |
|
41 |
|
42 we need this special setter because of a chicken and egg problem : |
41 we want the manager to use popcorn but the popcorn div will be managed |
43 we want the manager to use popcorn but the popcorn div will be managed |
42 by the manager. So we need a way to set the instance the manager uses |
44 by the manager. So we need a way to set the instance the manager uses |
43 */ |
45 */ |
44 |
46 |
45 IriSP.LayoutManager.prototype.setPopcornInstance = function(popcorn) { |
47 IriSP.LayoutManager.prototype.setPopcornInstance = function(popcorn) { |
46 this._Popcorn = popcorn; |
48 this._Popcorn = popcorn; |
47 } |
49 } |
48 |
50 |
49 /* stem is a string to append to the id of the widget */ |
51 /** create a subdiv with an unique id, and a spacer div as well. |
|
52 @param stem stem is a string to append to the id of the widget |
|
53 @return an array of the form [createdivId, spacerdivId]. |
|
54 */ |
50 IriSP.LayoutManager.prototype.createDiv = function(stem) { |
55 IriSP.LayoutManager.prototype.createDiv = function(stem) { |
51 if (typeof(stem) === "undefined") |
56 if (typeof(stem) === "undefined") |
52 stem = ""; |
57 stem = ""; |
53 |
58 |
54 var newDiv = IriSP.guid(this._div + "_widget_" + stem + "_"); |
59 var newDiv = IriSP.guid(this._div + "_widget_" + stem + "_"); |