fixed height of vertical tabs
This commit is contained in:
		
							parent
							
								
									e515eb2019
								
							
						
					
					
						commit
						b527ad253b
					
				| 
						 | 
				
			
			@ -1292,21 +1292,6 @@ class accountContainer {
 | 
			
		|||
		$table->addElement($rightGroup);
 | 
			
		||||
 | 
			
		||||
		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
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	/**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -760,3 +760,15 @@ window.lam.upload.uploadDone = function(jsonData) {
 | 
			
		|||
		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});
 | 
			
		||||
	});
 | 
			
		||||
});
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue