0

tabbox width to page size

asked 2011-03-03 15:11:48 +0800

PhilipPeinsold gravatar image PhilipPeinsold
70 2

Hello

I couldn't find out how to set tabbox width to 100% of the page. By default tabbox width is just as much as it needs for it's tabs, and the tabpanels are also just as big as the tabbox width.
But I want that the tabpanels use the whole space of the page (100%). How could I do that??

Thats my code:
<window apply="hibernatetozk.Controller" border="normal" id="Login_Window" sclass="embedded" title=" ">
<vbox spacing="0" width="100%">
<tabbox id="tb_menu" width="100%">
<tabs>
<tab id="menu_contacts" label="Kontaktverwaltung"/>
<tab label="Gerätekonfiguration" />
<tab label="Notfallkonfiguration" />
<tab label="Stammdatenverwaltung" />
</tabs>
<tabpanels>
<tabpanel width="100%">
<panel title=" " border="normal" width="100%" >
<panelchildren>
<hbox spacing="0" width="100%" height="100%">
<tabbox id="tb" orient="vertical">
<tabs id="tabs">
<tab id="All" label="Alle" />
<tab id="A" label="A" />
<tab id="B" label="B" />
<tab id="C" label="C" />
<tab id="D" label="D" />
<tab id="E" label="E" />
</tabs>
</tabbox>
<splitter id="s2" collapse="before"/>
Kontaktanzeige...
</hbox>
</panelchildren>
</panel>
</tabpanel>
<tabpanel width="100%" style="overflow:auto"><include src="Login.zul"/></tabpanel>
<tabpanel width="100%">Notfallkonfiguration</tabpanel>
<tabpanel width="100%">Stammdatenverwaltung</tabpanel>
</tabpanels>
</tabbox>
</vbox>
</window>


What am I doing wrong here?
thx

delete flag offensive retag edit

2 Replies

Sort by » oldest newest

answered 2011-03-03 15:53:32 +0800

twiegand gravatar image twiegand
1807 3

updated 2011-03-03 15:55:41 +0800

PhilipPeinsold,

Please include your code with the wrappers made by clicking the # just under the Preview tab. It makes it much easier for us to read and help.

I suspect your problem lies with your <vbox>. If you are running ZK 5, simply switching them to <vlayout> components should fix the issue.

Regards,

Todd

link publish delete flag offensive edit

answered 2011-03-03 17:34:55 +0800

PhilipPeinsold gravatar image PhilipPeinsold
70 2

Thanks!, you are absolutely right!, that solved my problem... nice!

...oh yes, and sorry for the code formatting, I did not know that there is a function for it!


Thanks again!

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: 2011-03-03 15:11:48 +0800

Seen: 242 times

Last updated: Mar 03 '11

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