简体   繁体   中英

How to re-position SimpleDialog2?

我有SimpleDialog2,并且显示和隐藏了一些Content,我想在隐藏一些数据后重新定位Dialog,该怎么做?

I found a solution , by fire resize event for window, this will make re-position for SimpleDialog2.

Here are the code:

var evt = document.createEvent('UIEvents');
evt.initUIEvent('resize', true, false,window,0);
window.dispatchEvent(evt);

See it in action here: http://jsfiddle.net/9hsBA/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM