1

[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

Hi,

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">
                    <menupopup>
                        <menuitem label="A1"/>
                    </menupopup>
                </menu>
                ....                    
            </menubar>
            <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"/>
            </hbox>
        </hbox>
    </north>

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

h**p://i.imgur.com/HnRnxmj.png

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".

Thanks

delete flag offensive retag edit

Comments

</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

Follow
2 followers

RSS

Stats

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

Seen: 28 times

Last updated: Mar 11 '14

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