Subversion Repositories Applications.papyrus

Rev

Rev 1987 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1318 alexandre_ 1
/*
2
	Copyright (c) 2004-2006, The Dojo Foundation
3
	All Rights Reserved.
4
 
5
	Licensed under the Academic Free License version 2.1 or above OR the
6
	modified BSD license. For more information on Dojo licensing, see:
7
 
8
		http://dojotoolkit.org/community/licensing.shtml
9
*/
10
 
1422 alexandre_ 11
 
12
 
1318 alexandre_ 13
dojo.provide("dojo.widget.LayoutContainer");
14
dojo.require("dojo.widget.*");
15
dojo.require("dojo.widget.html.layout");
16
dojo.widget.defineWidget("dojo.widget.LayoutContainer", dojo.widget.HtmlWidget, {isContainer:true, layoutChildPriority:"top-bottom", postCreate:function () {
17
	dojo.widget.html.layout(this.domNode, this.children, this.layoutChildPriority);
18
}, addChild:function (child, overrideContainerNode, pos, ref, insertIndex) {
19
	dojo.widget.LayoutContainer.superclass.addChild.call(this, child, overrideContainerNode, pos, ref, insertIndex);
20
	dojo.widget.html.layout(this.domNode, this.children, this.layoutChildPriority);
21
}, removeChild:function (pane) {
22
	dojo.widget.LayoutContainer.superclass.removeChild.call(this, pane);
23
	dojo.widget.html.layout(this.domNode, this.children, this.layoutChildPriority);
24
}, onResized:function () {
25
	dojo.widget.html.layout(this.domNode, this.children, this.layoutChildPriority);
26
}, show:function () {
27
	this.domNode.style.display = "";
28
	this.checkSize();
29
	this.domNode.style.display = "none";
30
	this.domNode.style.visibility = "";
31
	dojo.widget.LayoutContainer.superclass.show.call(this);
32
}});
33
dojo.lang.extend(dojo.widget.Widget, {layoutAlign:"none"});
34