0

Grid in a panel

asked 2015-04-29 15:13:32 +0800

Tegomena gravatar image Tegomena
33 4

updated 2015-04-29 15:15:40 +0800

Dear all,

I have a borderlayout with a center region. Inside of center, I have a panel with panelchildren and inside that panelchildren a grid. Now, I need that this grid fills up always the available space in the center region, but I didn't succeeded. It always resizes and uses only a part of the available space. I tried a lot of things with height=100%, hflex and so on, but still it doesnt works ...

<center>
<panel height="100%" >
<panelchildren >
<grid id="resultGrid"   mold="paging" pageSize="5" height="100%" >
delete flag offensive retag edit

2 Answers

Sort by ยป oldest newest most voted
1

answered 2015-04-30 02:20:00 +0800

echarish gravatar image echarish flag of Japan
1809 7
http://jp.linkedin.com/in...

updated 2015-04-30 02:20:34 +0800

Hello

use hflex="1" for horizontal space, and vflex="1" for vertical space, on any component's that you want should fill the complete space of it's parent's.

Harish.

link publish delete flag offensive edit
0

answered 2015-05-03 14:18:15 +0800

Darksu gravatar image Darksu
1991 1 4

Hello Tegomena,

In addition please refer to the following url:

http://books.zkoss.org/wiki/ZKDeveloper%27sReference/UIPatterns/Hflexand_Vflex

And keep in mind that if the parent has no predefined height (i.e., its height is decided by this children), the flexible component won't take any space. To solve it, you have to specify the height of the parent.

Best Regards,

Darksu

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2015-04-29 15:13:32 +0800

Seen: 14 times

Last updated: May 03 '15

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More