EasyUI Forum

General Category => General Discussion => Topic started by: Ellipsis on July 20, 2012, 05:45:24 AM



Title: Disable the calculation of inline styles
Post by: Ellipsis on July 20, 2012, 05:45:24 AM
To speed up the rendering of the datagrids or other easyui components, I would prefer a minimal number of even no calculations for height and width.

At the moment we use jQuery to remove all the calculated heights and widths for easyUI components.
So the height are calculated (wait wait wait ) to be removed ....

We then use a normal external stylesheet to style the elements for fluid layouts.

I would suggest this request as a 'change request' for the new version

current workaround

Code:
jQuery('.easyui-tabs, .datagrid').find('div').each(function(){
var currentHeight = jQuery(this).css('height');
if(!jQuery(this).hasClass('datagrid-toolbar') || currentHeight.length >0){
jQuery(this).css('height', 'auto');
}
});