0

sclass="word-wrap" not work

asked 2010-12-14 20:41:14 +0800

Sam2012 gravatar image Sam2012
9

updated 2010-12-14 20:44:15 +0800

zk5.0 sclass="word-wrap" not work

I appreciate your help:

<p:listitem self="@{each=DicShcode}">
	<p:listcell label="@{DicShcode.code}"/>
	<p:listcell label="@{DicShcode.descriptionC}" sclass="word-wrap"/>
	<p:listcell label="@{DicShcode.descriptionI}" sclass="word-wrap"/>
	<p:listcell label="@{DicShcode.descriptionP}" sclass="word-wrap"/>
</p:listitem>

but this is ok:

<p:listitem>
	<p:listcell label="0123456789"/>
	<p:listcell label="AAAAAAAAAAAAAAAAAAAAAAAAAAAAA" sclass="word-wrap"/>
	<p:listcell label="BBBBBBBBBBBBBBBBBBBBBBBBBBBBB" sclass="word-wrap"/>
	<p:listcell label="CCCCCCCCCCCCCCCCCCCCCCCCCC" sclass="word-wrap"/>
</p:listitem>

why?

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2010-12-14 22:41:32 +0800

TonyQ gravatar image TonyQ
642
https://www.masterbranch....

updated 2010-12-14 22:42:16 +0800

Hi Sam2012 ,
could you try to use "z-word-wrap" instead of sclass="word-wrap"?

I think that would work.


I tried the test case for

<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" ?> 
<zk>
        <zscript>
                ListModelList models= new ListModelList();
                models.add("sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss");
                models.add("sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss");
                models.add("sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss");
                models.add("sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss");
                models.add("sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss");
        </zscript>
        <listbox id="list" model="@{models}" width="100px">
                <listhead>
                        <listheader label="item  list" />
                </listhead>
				<listitem self="@{each=DicShcode}">
					<listcell label="@{DicShcode}" sclass="z-word-wrap" />
				</listitem>
        </listbox>
</zk>

And it works well in ZK 5.0.0 .
The snapshot http://goo.gl/vLT6z


If problem still exist , please provide browser version and ZK version that helps to check the problem.

link publish delete flag offensive edit

answered 2010-12-15 03:05:02 +0800

Sam2012 gravatar image Sam2012
9

thanks!

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-14 20:41:14 +0800

Seen: 516 times

Last updated: Dec 15 '10

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