OSDN Git Service

Version 0.6.111, rename files.
[pettanr/clientJs.git] / 0.6.x / js / 20_ui / 20_PageRoot.js
index a692fbc..eae3e90 100644 (file)
@@ -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;
                },