在動態創建控件的時候有時候需要根據現有的控件高度去設置新控件的高度,如何動態取得已有控件的高度就是一個問題了。可以使用下面的代碼進行取得控件高度。
dojo.style(dojo.byId("mapRegion"), "height")
頁面上已有代碼:<div dojoType="dijit.layout.ContentPane" region="center" id="mapRegion">
</div>
</div>
TauruserJSF will hibernate in spring.
|