fixed height of vertical tabs

This commit is contained in:
Roland Gruber 2017-06-20 18:43:19 +02:00
parent e515eb2019
commit b527ad253b
2 changed files with 12 additions and 15 deletions

View File

@ -1292,21 +1292,6 @@ class accountContainer {
$table->addElement($rightGroup); $table->addElement($rightGroup);
parseHtml(null, $table, array(), false, $tabindex, $this->type->getScope()); parseHtml(null, $table, array(), false, $tabindex, $this->type->getScope());
?>
<script type="text/javascript">
jQuery(document).ready(function() {
var maxHeight = 0;
jQuery('.lamEqualHeightTabContent').each(function() {
if (jQuery(this).height() > maxHeight) {
maxHeight = jQuery(this).height();
};
});
jQuery('.lamEqualHeightTabContent').each(function() {
jQuery(this).css({'height': maxHeight});
});
});
</script>
<?php
} }
/** /**

View File

@ -760,3 +760,15 @@ window.lam.upload.uploadDone = function(jsonData) {
top.location.href = '../lists/list.php?type=' + jsonData.typeId + '&uploadAllOk'; top.location.href = '../lists/list.php?type=' + jsonData.typeId + '&uploadAllOk';
} }
} }
jQuery(document).ready(function() {
var maxHeight = 0;
jQuery('.lamEqualHeightTabContent').each(function() {
if (jQuery(this).height() > maxHeight) {
maxHeight = jQuery(this).height();
};
});
jQuery('.lamEqualHeightTabContent').each(function() {
jQuery(this).css({'height': maxHeight});
});
});