EasyUI Forum
May 17, 2024, 09:12:26 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: EASYU1.5 Why the height of all controls into 24 px, there can be, please?  (Read 5499 times)
Sdricky
Newbie
*
Posts: 7


View Profile Email
« on: September 07, 2016, 02:34:28 AM »

EASYU1.5  Why the height of all controls into 24 px, there can be, please?
Logged
jarry
Administrator
Hero Member
*****
Posts: 2264


View Profile Email
« Reply #1 on: September 07, 2016, 04:28:25 AM »

Please show an example to demonstrate your issue.
Logged
mzeddd
Full Member
***
Posts: 223



View Profile
« Reply #2 on: September 08, 2016, 12:53:56 PM »

Yes, it is true.
I had to modify style for each control to make all forms look like before.
Logged
jarry
Administrator
Hero Member
*****
Posts: 2264


View Profile Email
« Reply #3 on: September 08, 2016, 05:24:46 PM »

There are 3 ways to set the height of inputing components.

1. Override the CSS style.
Code:
.textbox .textbox-text{
height: 22px;
box-sizing:border-box;
}

2. Override the $.fn.textbox.default.height.
Code:
<script type="text/javascript">
$.fn.textbox.defaults.height = 22;
$.fn.numberbox.defaults.height = 22;
//...
</script>

3. Set the inline height style.
Code:
<input class="easyui-textbox" style="width:100%;height:22px">
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!