EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: gordis gmbh on December 05, 2018, 02:48:53 AM



Title: Components height has been increased after EasyUI upgrade
Post by: gordis gmbh on December 05, 2018, 02:48:53 AM
Hello,

We are currently using EasyUI version 1.5.4.1 and are wanting to upgrade to 1.6.10.
After this upgrade the components (menu items, datagrid-filter, etc) has been increased  In older version the default height of a menu button was 22px now it is 30px. Please refer the screen shot attached.
We would like to have the same height as before. How can we set this centrally for all components?

Thanks


Title: Re: Components height has been increased after EasyUI upgrade
Post by: jarry on December 05, 2018, 05:24:29 PM
Please download a narrow theme from https://www.jeasyui.com/extension/themes_older.php


Title: Re: Components height has been increased after EasyUI upgrade
Post by: gordis gmbh on December 10, 2018, 08:58:04 AM
Hello,

We found out that there is a difference between datagrid and edatagrid editorHeight values. Please refer the screen shot attached.

We had to extend edatagrid editorHeight as well to solve this issue:


if ($.fn.edatagrid){
      $.extend($.fn.edatagrid.defaults, {
         editorHeight: 24
      });
   }


Is there other plugin, which we should extend their editorHeight as well?

Thanks!


Title: Re: Components height has been increased after EasyUI upgrade
Post by: jarry on December 10, 2018, 07:52:50 PM
All the 'editorHeight' property value is reset as 24 in the 'jquery.easyui.theme.v1.js' file that can be download from https://www.jeasyui.com/extension/themes_older.php. Please include it to the page before the 'edatagrid' plugin.
Code:
  <script type="text/javascript" src="./themes/jquery.easyui.theme.v1.js"></script>
  <script type="text/javascript" src="./jquery.edatagrid.js"></script>