EasyUI Forum
September 13, 2025, 04:26:06 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: Center panel layout width without an East panel [Solved]  (Read 12976 times)
devnull
Sr. Member
****
Posts: 431


View Profile
« on: January 27, 2015, 03:29:40 AM »

When you have no East panel in a layout, the center (main) panel width does not appear to be set correctly:

http://jsfiddle.net/seKvb/26/

You can see that the red border around the 100% input should be visible around the whole element but is hidden on the right and bottom.

How to solve this ?

Thanks
« Last Edit: January 28, 2015, 07:35:47 PM by devnull » Logged

-- Licensed User --
jarry
Administrator
Hero Member
*****
Posts: 2298


View Profile Email
« Reply #1 on: January 27, 2015, 03:57:41 AM »

Please set the "box-sizing:border-box" CSS style to the input element.

http://jsfiddle.net/seKvb/27/
Logged
devnull
Sr. Member
****
Posts: 431


View Profile
« Reply #2 on: January 27, 2015, 04:15:14 AM »

Many thanks for the quick reply.

The example I posted was a simple example of a nested layout that I have that contains panels and tabs, and the solution you gave appears to work for that.

I will have to try and create another fiddle that is more similar to the actual code I am using.

Thanks



Logged

-- Licensed User --
devnull
Sr. Member
****
Posts: 431


View Profile
« Reply #3 on: January 28, 2015, 01:20:34 AM »

OK, maybe you take a look at this.

http://jsfiddle.net/seKvb/29/

The text box size is too wide for the container and is extending beyond the parent element.

Logged

-- Licensed User --
jarry
Administrator
Hero Member
*****
Posts: 2298


View Profile Email
« Reply #4 on: January 28, 2015, 03:17:12 AM »

Please try this updated example http://jsfiddle.net/seKvb/30/. It works fine.
Logged
devnull
Sr. Member
****
Posts: 431


View Profile
« Reply #5 on: January 28, 2015, 03:30:31 AM »

Great, thanks a lot for helping.

But what is the logic in determining which divs / panels need to have fit applied and which to create with and without the 'easyui-panel' class ?
Logged

-- Licensed User --
jarry
Administrator
Hero Member
*****
Posts: 2298


View Profile Email
« Reply #6 on: January 28, 2015, 07:00:48 PM »

An element with 'easyui-*' class means that this element will be parsed automatically. If a component has child panel such as layout, tabs, etc. You do not need to assign the 'easyui-panel' class to its child elements, otherwise the duplicate parsing will occur.
Logged
devnull
Sr. Member
****
Posts: 431


View Profile
« Reply #7 on: January 28, 2015, 07:36:19 PM »

Thanks, but when do you know where to add the "FIT" property ?
Logged

-- Licensed User --
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!