|
Title: Portal Alignment Post by: Darrel on March 07, 2016, 10:27:44 PM Hello,
I needed some help using the portal extension. I've seen the code for using by referring the following link: http://www.jeasyui.com/extension/portal.php (http://www.jeasyui.com/extension/portal.php) This is the following code for creating a normal portal applciation: Code: <div id="pp" style="width:800px;height:500px;"> My requirement is such that there will be one element in any of the above three div elements, which will have the width equivalent to the size of "pp" div (main portal div). So when i move that element with width of 100%, i would like it to retain it's 100% as per "pp" div and not the child divs of "pp" in which it is dragged and dropped. eg: Code: <div id="pp" style="width:800px;height:500px;"> Is it possible to have such an element in the portal grid. If so, how could i accomplish the same? Thanks in advance. Title: Re: Portal Alignment Post by: jarry on March 08, 2016, 01:55:47 AM You can try to set some CSS styles for the special panel when drag and drop it successfully. Please refer to the code below:
Code: $('#pp').css('position','relative').portal({ |