EasyUI Forum

General Category => General Discussion => Topic started by: anugrast on September 22, 2016, 03:25:34 AM



Title: Center Vertical a Panel in a Layout Region
Post by: anugrast on September 22, 2016, 03:25:34 AM
Can we make center vertical a panel in a layout region???

I've tried
Code:
<div data-options="region:'center'">
    <div class="easyui-panel" title="Login" data-options="style:{margin:'auto auto'}" style="width:400px">some content</div>
</div>

but didn't work...

Please help...


Title: Re: Center Vertical a Panel in a Layout Region
Post by: jarry on September 22, 2016, 08:19:55 AM
Please try to use a inline window instead.
Code:
<div data-options="region:'center',title:'Center'" style="position:relative;padding:20px">
<div class="easyui-window" title="Login" style="width:400px" data-options="
inline:true,
resizable:false,
draggable:false,
shadow:false,
border:'thin',
collapsible:false,
minimizable:false,
maximizable:false,
closable:false,
style:{borderRadius:0}">
<p>some content</p>
</div>
</div>


Title: Re: Center Vertical a Panel in a Layout Region
Post by: anugrast on September 22, 2016, 06:07:33 PM
It's work... thanks...