X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=0.6.x%2Fjs%2F20_ui%2F20_PageRoot.js;h=eae3e90fe66deb1c04b94391c55989785144f188;hb=db13457fcd6dcd4a6a55043426d78f898e16db0a;hp=a692fbc880c99979633526f67e25edc320f90420;hpb=35b73e6051577fb7433bb11a074a3b5800550ac3;p=pettanr%2FclientJs.git diff --git a/0.6.x/js/20_ui/20_PageRoot.js b/0.6.x/js/20_ui/20_PageRoot.js index a692fbc..eae3e90 100644 --- a/0.6.x/js/20_ui/20_PageRoot.js +++ b/0.6.x/js/20_ui/20_PageRoot.js @@ -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; },