0

Set grid column to take remainder of width?

asked 2009-04-30 17:15:18 +0800

davout gravatar image davout
1435 3 18

Is it possible to set a grid column width so that it takes the remainder of ther available width?

For instance....

<grid width="95%">
	<columns>
		<column width="120px" />
 	        <column width="*"/>
		<column width="120px" />
	</columns>


The grid is to take 95% of the available space. I want the first and 3rd columns to be of fixed size, and the middle column to fill the remainder of the width.

Is this possible?

delete flag offensive retag edit

4 Replies

Sort by ยป oldest newest

answered 2009-04-30 17:29:57 +0800

james gravatar image james
255 2

I actually just copied your code, and it works for me...

<zk>
<grid width="95%">
	<columns>
		<column width="120px" label="1"/>  //label them just so i know
 	        <column width="*" label="2"/>
		<column width="120px" label="3"/>
	</columns>
</grid>
</zk>

the first and third columns take up a set amount, the middle column fills the rest. I can change the grid width to 100% and the the middle column is stretched, while the other 2 columns remain the same width.
So if that doesn't work, I dont know why.

link publish delete flag offensive edit

answered 2009-04-30 17:39:09 +0800

davout gravatar image davout
1435 3 18

Sorry, it's an IE8 problem. The web browser display is fine within MyEclipse, but if I run it outside in an IE8 page its all over the place.

link publish delete flag offensive edit

answered 2009-04-30 17:41:31 +0800

james gravatar image james
255 2

It seems that lots of people are experiencing problems with IE8 rendering things properly. (i havn't tested anything with IE8 yet)

link publish delete flag offensive edit

answered 2009-04-30 17:45:42 +0800

davout gravatar image davout
1435 3 18

.... when's that going to happen?

link publish delete flag offensive edit
Your reply
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

RSS

Stats

Asked: 2009-04-30 17:15:18 +0800

Seen: 199 times

Last updated: Apr 30 '09

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