0

Problem expands listbox and borderlayaout

asked 2008-06-17 11:57:05 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=5037838

By: isanz22

Hi,

I have a problem using listbox and borderlayaout. If expands the vertical layout not reshape the listbox. Prior to version 3.0.5 if it worked. How can I do to expand the columns of the listbox?.

Thank you very much

<borderlayout height="100%">
<north size="100%" border="0" splittable="true" collapsible="true">
<borderlayout>
<west size="50%" border="none" flex="true" splittable="true" collapsible="true"
/>
<center border="none" flex="true">
<listbox width="100%">
<listhead sizable="true">
<listheader label="name" sort="auto"/>
<listheader label="gender" sort="auto"/>
</listhead>
<listitem>
<listcell label="Mary"/>
<listcell label="FEMALE"/>
</listitem>
</listbox>
</center>
</borderlayout>
</north>
</borderlayout>

delete flag offensive retag edit

3 Replies

Sort by ยป oldest newest

answered 2008-06-18 01:20:30 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=5039102

By: robbiecheng

Hi,

Try to set fixedLayout = true in listbox, and it will always fit the width of its parent.

/robbie

link publish delete flag offensive edit

answered 2008-06-18 16:51:37 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=5039987

By: isanz22

Thank you for answering!

I still have the same problem but now only with listitem and not with the listhead.
This problem appears only happens if the scroll bar. if we use pageSize = "2"
does not happen, so I still have the problem.

Thank you for your collaboration


<borderlayout height="50%">
<north size="100%" border="0" splittable="true" collapsible="true">
<borderlayout>
<west size="50%" border="none" flex="true" splittable="true" collapsible="true"
/>
<center border="none" flex="true">
<div>
<listbox id="listBoxCategorias" height="100px" width="100%" fixedLayout="true"
mold="paging">
<listhead sizable="true">
<listheader label="name" sort="auto"/>
<listheader label="gender" sort="auto"/>
</listhead>
<listitem>
<listcell label="Mary"/>
<listcell label="FEMALE"/>
</listitem>
<listitem>
<listcell label="Mary"/>
<listcell label="FEMALE"/>
</listitem>
<listitem>
<listcell label="Mary"/>
<listcell label="FEMALE"/>
</listitem>
<listitem>
<listcell label="Mary"/>
<listcell label="FEMALE"/>
</listitem>
<listitem>
<listcell label="Mary"/>
<listcell label="FEMALE"/>
</listitem>
<listitem>
<listcell label="Mary"/>
<listcell label="FEMALE"/>
</listitem>
<listitem>
<listcell label="Mary"/>
<listcell label="FEMALE"/>
</listitem>
<listitem>
<listcell label="Mary"/>
<listcell label="FEMALE"/>
</listitem>
</listbox>

<paging id="pg" pageSize="8" detailed="true" style="margin-top: 10px" />
<zscript>
listBoxCategorias.setPaginal(pg);
</zscript>
</div>
</center>
</borderlayout>
</north>
</borderlayout>


link publish delete flag offensive edit

answered 2008-06-24 09:13:03 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=5051185

By: isanz22

I still keep having the same problem, if someone can help me, I would be very grateful

Thank you very much

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: 2008-06-17 11:57:05 +0800

Seen: 123 times

Last updated: Jun 24 '08

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