EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: roberto on February 08, 2016, 11:37:20 AM



Title: scrollbar at panel
Post by: roberto on February 08, 2016, 11:37:20 AM
hi,
how to know if a scrollbar is visible (or needed) inside a panel? I have a form with variable height and when its content is greater than its height I would like to increase its width to keep some space at right side.


Title: Re: scrollbar at panel
Post by: jarry on February 08, 2016, 05:48:31 PM
You just need to set the 'height' to 'auto' for the panel to make it auto increase/decrease its height according to its content.


Title: Re: scrollbar at panel
Post by: roberto on February 09, 2016, 07:29:35 AM
thanks for you answer but I guess I was not very clear.
1) The panel height is a fixed value.
2) The panel content have a variable height.
3) So, when it is bigger than the panel height is showed a scrollbar but it takes space from the panel width 'hiding' the rightmost panel content causing an undesirable effect.
Sorry my English, I hope you can understand me now.


Title: Re: scrollbar at panel
Post by: jarry on February 10, 2016, 03:29:52 AM
You may need to show an example to demonstrate your issue.