EasyUI Forum
May 03, 2024, 05:16:09 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Disable the calculation of inline styles  (Read 16802 times)
Ellipsis
Full Member
***
Posts: 113


View Profile WWW
« 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');
}
});

« Last Edit: July 20, 2012, 06:27:51 AM by reno1979 » Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!