+function XUI_PageRoot_do1stCalculate(){
+ this.calculate();
+ this.phase = 4;
+ X.ViewPort
+ [ 'listen' ]( X_EVENT_VIEW_RESIZED, this, this.calculate )
+ [ 'listen' ]( X_EVENT_BASE_FONT_RESIZED, this, this.calculate );
+};
+
+function XUI_PageRoot_onViewUpdate( e ){
+ this[ 'dispatch' ]( XUI_Event.LAYOUT_COMPLETE );
+};
+
+//var XUI_PageRoot;
+// TODO singleton
+X.UI.PageRoot = X.UI.Box.inherits(
+ 'PageRoot',
+ X_Class.NONE,
+ {
+ Constructor : function(){
+ var supports;
+
+ //if( !XUI_PageRoot ){
+ supports = XUI_Attr_createAttrDef( XUI_Box.prototype.usableAttrs, XUI_Layout_Canvas.overrideAttrsForSelf );
+
+ XUI_PageRoot.prototype.layout = XUI_Layout_Canvas;
+ XUI_PageRoot.prototype.usableAttrs = supports;
+ XUI_PageRoot.prototype.attrClass = XUI_Attr_preset( XUI_Box.prototype.attrClass, supports, {
+ width : '100%',
+ height : '100%'
+ } );
+ //};
+ X_Pair_create( this, XUI_PageRoot( this, XUI_Layout_Canvas, arguments ) );
+ }
+ });
+/*