-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I'm having a bit of trouble with some formatting using ZK (which is roughly analogous to HTML). I'm using a program that automatically adds text to the box titled "privDesc". Normally this works fine--it puts it on one line normally, and more if necessary. However, for certain lengths of strings (say, 71-73 characters), the text is instead cut off at the end at it doesn't roll over to the next line. I've tried changing the hbox-width for the relevant hbox, but no luck. Anyone have any thoughts?
<zk>
<window id="X" use="X" border="none" width="500px" height="650px" mode="overlapped" closable="true" position="center,center">
<include src="X"/>
<vbox style= "margin-left: 18px;margin-top:18px;margin-right:20px;height:210px;" >
<label value="Add an access rule" style="font-size:28px !important;color:#0018A8" />
<label style="color: #666666 !important;font-size:13px !important;" value="X"/>
<separator spacing="15px" />
<hbox spacing="0">
<cell style="valign=center;border-right: none;border-left: none;border-bottom: none;border-top: none" width="200px">
<label style="color: #666666 !important" value="X"/>
</cell>
<cell style=";border-right: none;border-left: none;border-bottom: none;border-top: none" width="230px">
<combobox id="comboBoxPriv" width="230px" style="background: #FFFFFF;" readonly="true"/>
</cell>
</hbox>
<panel height="30px" width="500px">
<panelchildren style="margin-left: 18px; margin-right: 40px; width">
<hbox width="325px" pack="center" align="center"><label id="privDesc"/></hbox>
</panelchildren>
</panel>
Hello yoman82,
It is the page styling and use of width (Better use percentages). For example i modified your zul and now it shows all the characters
<zk>
<window border="none" width="100%" height="650px" mode="overlapped" closable="true" position="center,center">
<vbox style= "margin-left: 18px;margin-top:18px;margin-right:20px;height:210px;" >
<label value="Add an access rule" style="font-size:28px !important;color:#0018A8" />
<label style="color: #666666 !important;font-size:13px !important;" value="X"/>
<separator spacing="15px" />
<hbox spacing="0">
<cell style="valign=center;border-right: none;border-left: none;border-bottom: none;border-top: none" width="200px">
<label style="color: #666666 !important" value="X"/>
</cell>
<cell style=";border-right: none;border-left: none;border-bottom: none;border-top: none" width="230px">
<combobox id="comboBoxPriv" width="230px" style="background: #FFFFFF;" readonly="true"/>
</cell>
</hbox>
<panel height="30px" width="100%">
<panelchildren>
<hbox width="325px" pack="center" style="margin-left: 18px; margin-right: 40px;" align="center"><label id="privDesc">0123456789012345678901234567890123456789012345678901234567890123456789abcd</label></hbox>
</panelchildren>
</panel>
</vbox>
</window>
</zk>
Best Regards,
Darksu
I think from above the post you got a right solution is it..
Asked: 2016-07-20 19:44:28 +0800
Seen: 22 times
Last updated: Jul 27 '16
Placeholder with phonemasking in IE11 Browser not working
How to do ${c:l(@load(vm.name)} correctly?
how to specify line break in label. [closed]
Label text does not wrap in a "scrollview"
How to include a single special utf-8 character in a treecol label string?
how to change the style of portion of Label's value
How to get a label value for all the different international label file?