EasyUI, Dialog 在架構頁(ifrmae)的Top頁面彈出時,拖拽Dialog邊緣(以改變視窗大小),UI介面被卡死的解決辦法

來源:互聯網
上載者:User

標籤:1.5   res   class   onload   max   ilog   onclick   content   分享   

將Dialog的modal屬性設定為true,可以解決卡死的問題(但會給使用者使用體驗帶來影響)
 1         var par = { 2             title: This.title, 3             width: This.width, 4             height: This.height, 5             cache: This.cache, 6             modal: This.modal, 7             resizable: This.resizable, 8             maximizable: This.maximizable, 9             onResize: This.onResize,10             modal: true,//關鍵代碼:不然拖拽Dialog邊緣以改變視窗大小時,Dailog會被卡死;//modal:是否將表單顯示為模式化視窗。 true            11             constrain: true,//關鍵代碼:若設為false,則表單title可以拖拽到瀏覽器邊緣外,導致無法拖拽回來(進而導致無法關閉Dialog——此時,只有重新整理當前頁面才能繼續操作軟體了)//constrain:定義是否限制表單的位置。(該方法自1.5版開始可用)12             onLoad: function () {13                 $("iframe[id=‘ifr" + This.renderID + "‘]").contentWindow.dialogData = This.dialogData;14                 This.onLoad();15             },16             onClose: This.onClose17         };
封裝的程式碼片段

 

 

EasyUI, Dialog 在架構頁(ifrmae)的Top頁面彈出時,拖拽Dialog邊緣(以改變視窗大小),UI介面被卡死的解決辦法

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.