Tabs check parent (usually a row) for height setting, and apply it to tabs

This commit is contained in:
Nathan Gray 2012-07-16 15:17:23 +00:00
parent c510b5f15f
commit 4454d4b2e3
2 changed files with 9 additions and 0 deletions

View File

@ -140,6 +140,14 @@ var et2_tabbox = et2_DOMWidget.extend({
if (tabsElems.length == 1 && tabpanelsElems.length == 1)
{
// Check for a parent height, we'll apply it to tab panels
var height = et2_readAttrWithDefault(_node.parentNode, "height",null);
if(height)
{
this.tabContainer.css("height", height);
}
var tabs = tabsElems[0];
var tabpanels = tabpanelsElems[0];

View File

@ -542,6 +542,7 @@ ul.et2_link_string {
border-style: solid;
border-color: silver;
padding: 5px;
overflow-y: auto;
}
.et2_tabflag.active {