[Solved] Menubar with Buttons

asked 2013-10-23 15:53:25 +0800

IngoB gravatar image IngoB flag of Germany
256 6

updated 2014-03-11 15:24:29 +0800


I got a ZUL Page, which is aligned by a "borderlayout". In "north" I got a Menubar, which is aligned left.

Now I want 2x Buttons and 2x Labels in "north", on the opposite direction of the Menubar (right).

I tried:

        <north border="none">
        <hbox width="100%">
            <menubar id="menubar" width="380px">
                <menu label="A">
                        <menuitem label="A1"/>
            <hbox vflex="1" hflex="1" align="center">
                <div hflex="1"></div>
                <label id="B"/>
                <button id="C" label="C" />
                <button id="D" label="D" />
                <label id="E"/>

which looks fine, but when I set a value for label "b" or "e", the design gets broken.


The top part in the image is the right looking one, while the bottom one is screwed up. Any Idea how to fix this? The buttons are "fixed width" while both labels can "grow".


delete flag offensive retag edit


</menubar> <hbox vflex="1" hflex="1" align="center" pack="end"> <label id="B"/>

IngoB ( 2013-10-24 12:19:08 +0800 )edit
Be the first one to answer this question!
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




Asked: 2013-10-23 15:53:25 +0800

Seen: 31 times

Last updated: Mar 11 '14

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