0

Horizontal scroll bar problem

asked 2010-12-16 08:45:25 +0800

vinhvo gravatar image vinhvo
369 3

Hi, I have a grid and I want it so that If the inner content is too long the table will be added a horizontal scrollbar automatically. Now the behavior only happens if i set the width in pixel and hflex="1" to the grid.
For example: no Srollbar

<grid>
	<columns>
		<column label="Content"></column>
	</columns>
	<rows>
		<row>
			<label value="Longgggggggggggggggddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaassssssssssssssasasggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg"></label>
		</row>
	
	</rows>

</grid>

Scroll Bar:

<grid  hflex="1">
	<columns>
		<column label="Content" width="3000px"></column>
	</columns>
	<rows>
		<row>
			<label value="Longgggggggggggggggddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaassssssssssssssasasggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg"></label>
		</row>
	
	</rows>

</grid>

Do we have some method so that the grid will automatically detect long content to add horizontal scrollbar automatically without setting a specific pixel value for grid.

Thank you for your help.

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2010-12-21 03:27:19 +0800

RyanWu gravatar image RyanWu
533 2
about.me/flyworld

you can search "sizebycontent" of zk grid

link publish delete flag offensive edit

answered 2010-12-21 06:23:56 +0800

vinhvo gravatar image vinhvo
369 3

Awesome. Work really well.
Thank you for your hint.

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: 2010-12-16 08:45:25 +0800

Seen: 359 times

Last updated: Dec 21 '10

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