EasyUI Forum
March 04, 2024, 01:49:07 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
   Home   Help Search Login Register  
Pages: [1]
Author Topic: Disable the calculation of inline styles  (Read 15916 times)
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

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]
Jump to:  

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