OSDN Git Service

Version 0.6.114, add AudioSprite, etc.
[pettanr/clientJs.git] / 0.6.x / js / 20_ui / 20_PageRoot.js
index a692fbc..fd84be3 100644 (file)
@@ -83,7 +83,7 @@ X.UI._PageRoot = X.UI._Box.inherits(
                _eventBusy            : false,
                
                Constructor : function( layout, args ){
-                       this.SuperConstructor( layout, args );
+                       this.Super( layout, args );
                        
                        if( X_ViewPort_readyState === X.Event.XDOM_READY ){
                                X.Timer.once( 0, this, this.start );
@@ -106,9 +106,9 @@ X.UI._PageRoot = X.UI._Box.inherits(
                        
                        // this.xnodeInteractiveLayer の前に追加する!
 
-                       this.addToParent( X.Dom.Node._body );
+                       this.addToParent( X.Doc.body );
                        
-                       this.xnodeInteractiveLayer = X.Dom.Node._body.create( 'div', {
+                       this.xnodeInteractiveLayer = X.Doc.body.create( 'div', {
                                'class'      : 'mouse-operation-catcher',
                                unselectable : 'on'
                        } );
@@ -154,17 +154,10 @@ X.UI._PageRoot = X.UI._Box.inherits(
                        };
                },
                calculate : function( e ){
-                       var font, size, w, h;
-                       if( !e ){
-                               size = X.ViewPort.getSize();
-                               font = X.ViewPort.getBaseFontSize();
-                               w    = size[ 0 ];
+                       var size = X.ViewPort.getSize(),
+                               font = X.ViewPort.getBaseFontSize(),
+                               w    = size[ 0 ],
                                h    = size[ 1 ];
-                       } else {
-                               font = e.fontSize;
-                               w = e.w;
-                               h = e.h;
-                       };
                        this.layout.calculate( this, false, 0, 0, w / font, h / font );
                        this.calcReserved = false;
                },