1

Text cut off

asked 2016-07-20 19:44:28 +0800

yoman82 gravatar image yoman82
13 3

updated 2016-07-20 19:45:54 +0800

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>
delete flag offensive retag edit

2 Answers

Sort by ยป oldest newest most voted
1

answered 2016-07-24 07:27:35 +0800

Darksu gravatar image Darksu
1991 1 4

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

link publish delete flag offensive edit
0

answered 2016-07-27 10:56:11 +0800

johnniewalk gravatar image johnniewalk
1
http://fugenx.com/service...

I think from above the post you got a right solution is it..

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: 2016-07-20 19:44:28 +0800

Seen: 22 times

Last updated: Jul 27 '16

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