解决 FloatingBehavior 不允许我们将拖拽面板(DragPanel)固定于某处的问题

需要在页面<body>  </body>之间加上一段javascript代码

        <script type="text/javascript">
    
// 下面的程序代码是用来解决 FloatingBehavior 不允许我们将
    
// 拖拽面板(DragPanel)固定于某处的问题。
    function setBodyHeightToContentHeight()
    
{
        document.body.style.height 
= 
        Math.max(document.documentElement.scrollHeight, document.body.scrollHeight)
        
+ "px";
    }

    setBodyHeightToContentHeight();
    $addHandler(window, 
"resize", setBodyHeightToContentHeight);
    
</script> 
posted @ 2008-04-05 17:26  MicroCoder  阅读(312)  评论(0编辑  收藏  举报