I am using the portal layout. It works fine when placed directly on the page. However, if I put it inside a tab, it gets squashed and not all of it shows up. How can I get its width to display correctly?
Here is the code that puts the tabs and the portal on the page:
<div id="main-tab-bar" class="easyui-tabs"><!-- begin tab bar -->
<div title="John Doe" iconCls="icon-reps-profile" closable="true"><!-- begin tab -->
<div id="c3col" class="aportal"><!-- begin portal area (the three column portal) -->
<div class="colA"></div><!-- col A (left col) -->
<div class="colB"></div><!-- col B (middle col) -->
<div class="colC"></div><!-- col C (right col) -->
</div><!-- end portal area -->
<div id="cWidgets"><!-- begin widgets staging area (this div is hidden. widgets are placed here before they are loaded into the portals.) -->
<!-- #include file="widget-A.inc"-->
<!-- #include file="widget-B.inc"-->
<!-- #include file="widget-C.inc"-->
<!-- #include file="widget-D.inc"-->
<!-- #include file="widget-E.inc"-->
<!-- #include file="widget-F.inc"-->
<!-- #include file="widget-G.inc"-->
<!-- #include file="widget-H.inc"-->
<!-- #include file="widget-I.inc"-->
<!-- #include file="widget-J.inc"-->
<!-- #include file="widget-K.inc"-->
<!-- #include file="widget-L.inc"-->
<!-- #include file="widget-M.inc"-->
<!-- #include file="widget-N.inc"-->
<!-- #include file="widget-O.inc"-->
<!-- #include file="widget-P.inc"-->
<!-- #include file="widget-Q.inc"-->
</div><!-- end widgets -->
</div><!-- end tab -->
</div><!-- end tab bar -->
<script type="text/javascript">
$(document).ready(function() {//begin on page load
$('#main-tab-bar').tabs(); //initialize the main tabs
$('#c3col').portal(); //initialize the portal
//followed by code that loads each of the widgets into the portal
});//end
</script>
Here is the rendered code that EasyUI creates:
<div style="width: auto; height: auto;" id="main-tab-bar" class="easyui-tabs tabs-container">
<div style="" class="tabs-header">
<div style="display: none;" class="tabs-scroller-left"></div>
<div style="display: none;" class="tabs-scroller-right"></div>
<div style="margin-left: 0px; left: 0px; width: 960px;" class="tabs-wrap">
<ul class="tabs">
<li class="tabs-selected"><a href="javascript:void(0)" class="tabs-inner"><span class="tabs-title tabs-closable tabs-with-icon">Carrie Paster</span><span class="tabs-icon icon-reps-profile"></span></a><a href="javascript:void(0)" class="tabs-popup"></a><a href="javascript:void(0)" class="tabs-close"></a></li>
</ul>
</div>
</div>
<div style="height: auto; width: auto;" class="tabs-panels">
<div style="display: block; width: auto;" class="panel">
<div class="panel-body panel-body-noheader panel-body-noborder" closed="true" title="" iconcls="icon-reps-profile" closable="true" style="width: 960px; height: auto;"></div>
<!-- begin portal area (the three column portal) -->
<div style="width: auto; height: auto;" id="c3col" class="aportal portal portal-noborder">
<!-- col A (left col) -->
<!-- col B (middle col) -->
<!-- col C (right col) -->
<table style="" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td class="portal-column-td">
<div style="width: 0px;" class="colA portal-column">
<div style="display: block; width: auto;" class="panel portal-panel">
<div style="width: 0px;" class="panel-header">
<div class="panel-title"><span>A</span></div>
<div class="panel-tool">
<div class="panel-tool-close"></div>
<div class="panel-tool-max"></div>
<div class="panel-tool-collapse panel-tool-expand"></div>
</div>
</div>
<div style="width: 0px; height: auto; display: none;" id="w117" class="easyui-panel pdiv panel-body portal-p" title="" collapsible="true" closable="true" maximizable="true">
content...
</div>
</div>
<div style="display: block; width: auto;" class="panel portal-panel">
<div style="width: 0px;" class="panel-header">
<div class="panel-title"><span>B</span></div>
<div class="panel-tool">
<div class="panel-tool-close"></div>
<div class="panel-tool-max"></div>
<div class="panel-tool-collapse panel-tool-expand"></div>
</div>
</div>
<div style="width: 0px; height: auto; display: none;" id="w115" class="easyui-panel pdiv panel-body portal-p" title="" collapsible="true" closable="true" maximizable="true">
content...
</div>
</div>
<div style="display: block; width: auto;" class="panel portal-panel">
<div style="width: 0px;" class="panel-header">
<div class="panel-title"><span>C</span></div>
<div class="panel-tool">
<div class="panel-tool-close"></div>
<div class="panel-tool-max"></div>
<div class="panel-tool-collapse panel-tool-expand"></div>
</div>
</div>
<div style="width: 0px; height: auto; display: none;" id="w106" class="easyui-panel pdiv panel-body portal-p" title="" collapsible="true" closable="true" maximizable="true">
content...
</div>
</div>
<div style="display: block; width: auto;" class="panel portal-panel">
<div style="width: 0px;" class="panel-header">
<div class="panel-title"><span>D</span></div>
<div class="panel-tool">
<div class="panel-tool-close"></div>
<div class="panel-tool-max"></div>
<div class="panel-tool-collapse panel-tool-expand"></div>
</div>
</div>
<div style="width: 0px; height: auto; display: none;" id="w114" class="easyui-panel pdiv panel-body portal-p" title="" collapsible="true" closable="true" maximizable="true">
content...
</div>
</div>
<div style="display: block; width: auto;" class="panel portal-panel">
<div style="width: 0px;" class="panel-header">
<div class="panel-title"><span>E</span></div>
<div class="panel-tool">
<div class="panel-tool-close"></div>
<div class="panel-tool-max"></div>
<div class="panel-tool-collapse panel-tool-expand"></div>
</div>
</div>
<div style="width: 0px; height: auto; display: none;" id="w105" class="easyui-panel pdiv panel-body portal-p" title="" collapsible="true" closable="true" maximizable="true">
content...
</div>
</div>
<div style="display: block; width: auto;" class="panel portal-panel">
<div style="width: 0px;" class="panel-header">
<div class="panel-title"><span>F</span></div>
<div class="panel-tool">
<div class="panel-tool-close"></div>
<div class="panel-tool-max"></div>
<div class="panel-tool-collapse"></div>
</div>
</div>
<div style="width: 0px; height: auto;" id="w119" class="easyui-panel pdiv panel-body portal-p" title="" collapsible="true" closable="true" maximizable="true" href="test-ajax.html">
content...
</div>
</div>
</div>
</td>
<td class="portal-column-td">
<div style="width: 0px;" class="colB portal-column">
<div style="display: block; width: auto;" class="panel portal-panel">
<div style="width: 0px;" class="panel-header">
<div class="panel-title"><span>G</span></div>
<div class="panel-tool">
<div class="panel-tool-close"></div>
<div class="panel-tool-max"></div>
<div class="panel-tool-collapse panel-tool-expand"></div>
</div>
</div>
<div style="width: 0px; height: auto; display: none;" id="w108" class="easyui-panel pdiv panel-body portal-p" title="" collapsible="true" closable="true" maximizable="true">
content...
</div>
</div>
<div style="display: block; width: auto;" class="panel portal-panel">
<div style="width: 0px;" class="panel-header">
<div class="panel-title"><span>H</span></div>
<div class="panel-tool">
<div class="panel-tool-close"></div>
<div class="panel-tool-max"></div>
<div class="panel-tool-collapse panel-tool-expand"></div>
</div>
</div>
<div style="width: 0px; height: auto; display: none;" id="w109" class="easyui-panel pdiv panel-body portal-p" title="" collapsible="true" closable="true" maximizable="true">
content...
</div>
</div>
<div style="display: block; width: auto;" class="panel portal-panel">
<div style="width: 0px;" class="panel-header">
<div class="panel-title"><span>I</span></div>
<div class="panel-tool">
<div class="panel-tool-close"></div>
<div class="panel-tool-max"></div>
<div class="panel-tool-collapse panel-tool-expand"></div>
</div>
</div>
<div style="width: 0px; height: auto; display: none;" id="w112" class="easyui-panel pdiv panel-body portal-p" title="" collapsible="true" closable="true" maximizable="true">
content...
</div>
</div>
<div style="display: block; width: auto;" class="panel portal-panel">
<div style="width: 0px;" class="panel-header">
<div class="panel-title"><span>J</span></div>
<div class="panel-tool">
<div class="panel-tool-close"></div>
<div class="panel-tool-max"></div>
<div class="panel-tool-collapse panel-tool-expand"></div>
</div>
</div>
<div style="width: 0px; height: auto; display: none;" id="w113" class="easyui-panel pdiv panel-body portal-p" title="" collapsible="true" closable="true" maximizable="true">
content...
</div>
</div>
</div>
</td>
<td class="portal-column-td">
<div style="" class="colC portal-column">
<div style="display: block; width: 33px;" class="panel portal-panel">
<div style="width: 33px;" class="panel-header">
<div class="panel-title"><span>K</span></div>
<div class="panel-tool">
<div class="panel-tool-close"></div>
<div class="panel-tool-max"></div>
<div class="panel-tool-collapse panel-tool-expand"></div>
</div>
</div>
<div style="width: 33px; height: auto; display: none;" id="w111" class="easyui-panel pdiv panel-body portal-p" title="" collapsible="true" closable="true" maximizable="true">
content...
</div>
</div>
<div style="display: block; width: 33px;" class="panel portal-panel">
<div style="width: 33px;" class="panel-header">
<div class="panel-title"><span>L</span></div>
<div class="panel-tool">
<div class="panel-tool-close"></div>
<div class="panel-tool-max"></div>
<div class="panel-tool-collapse panel-tool-expand"></div>
</div>
</div>
<div style="width: 33px; height: auto; display: none;" id="w110" class="easyui-panel pdiv panel-body portal-p" title="" collapsible="true" closable="true" maximizable="true">
content...
</div>
</div>
<div style="display: block; width: 33px;" class="panel portal-panel">
<div style="width: 33px;" class="panel-header">
<div class="panel-title"><span>M</span></div>
<div class="panel-tool">
<div class="panel-tool-close"></div>
<div class="panel-tool-max"></div>
<div class="panel-tool-collapse panel-tool-expand"></div>
</div>
</div>
<div style="width: 33px; height: auto; display: none;" id="w116" class="easyui-panel pdiv panel-body portal-p" title="" collapsible="true" closable="true" maximizable="true">
content...
</div>
</div>
<div style="display: block; width: 33px;" class="panel portal-panel">
<div style="width: 33px;" class="panel-header">
<div class="panel-title"><span>N</span></div>
<div class="panel-tool">
<div class="panel-tool-close"></div>
<div class="panel-tool-max"></div>
<div class="panel-tool-collapse panel-tool-expand"></div>
</div>
</div>
<div style="width: 33px; height: auto; display: none;" id="w107" class="easyui-panel pdiv panel-body portal-p" title="" collapsible="true" closable="true" maximizable="true">
content...
</div>
</div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end portal area -->
<!-- begin widgets staging area (this div is hidden. widgets are placed here before they are loaded into the portals.) -->
<div id="cWidgets">
</div>
<!-- end widgets -->
</div>
</div>
</div>
</div>
As you can see, it's setting the width of panels in the 1st & 2nd column to 0px, and the ones in the 3rd column to 33px, instead of filling the 100% page width.
Any help would be greatly appreciated. I've spent months on this project and getting the portal to work inside a tab is
extremely important.