-
FEATURED COMPONENTS
First time here? Check out the FAQ!
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
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
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!
Asked: 2011-03-03 15:11:48 +0800
Seen: 242 times
Last updated: Mar 03 '11