Ross Wan’s World!

Java, Python, Ajax, PHP and Linux.

  • Subscribe

  • 存档

  • 分类

  • 链接

Dojo: Layout 的问题

Posted by Ross Wan on 三月 3, 2009

<div id="wrap">
    <div id="main" dojoType="dijit.LayoutContainer">
...

在使用 Dojo 的 Layout(dijit.layout.xxxx),其 Wrap 容器必须设定其大小,如 style=”width:100px;height:100px;”。否则,将会显示空白页。在 1.2.3 和 1.3 都存在这个问题。如果其 Wrap 窗口是 Body,则将 Body 设为 style=”width:100%;height:100%;position:absolute” ;或者,将 Body 设为 style=”width:100%;height:100%;”, 将 #main 设为 style=”position:absolute”。

虽然不知道这是不是 Bugs,或者是不是一个正确的解决方法,但确实能解决目前问题:例如 《Book of Dojo》中的 Mail 应用例子。

回复

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>