EasyUI Forum
December 06, 2025, 05:06:40 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: TextBox height changed?  (Read 8530 times)
Pierre
Sr. Member
****
Posts: 439


View Profile Email
« on: May 25, 2016, 01:17:07 AM »

Hello development,
after I downloaded http://www.jeasyui.com/easyui/jquery.easyui.min.js, I see that textbox height is changed. Please see attached Images (big.png show currently size and small.png show previous size (before download).
Thank you for any idea how to solve this.
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: May 25, 2016, 07:56:11 AM »

There are 3 ways to set the default height:
1. Add the following style code to set the default height.
Code:
<style>
.textbox .textbox-text{
height:20px;
box-sizing:border-box;
}
</style>

2. Override the $.fn.textbox.defaults.height.
Code:
<script>
$.extend($.fn.textbox.defaults, {
  height: 22
});
</script>

3. Set the height when creating the component.
Code:
<input class="easyui-textbox" style="height:22px">
Logged
Pierre
Sr. Member
****
Posts: 439


View Profile Email
« Reply #2 on: May 25, 2016, 10:14:16 AM »

OK thank you but I have many forms designed to default height and they was changed (after I downloaded latest jquery.easyui.min.js
I will use your suggestion and use css to define height, thank you.
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!