0

Need help with a layout

asked 2009-12-02 15:33:12 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

updated 2009-12-02 15:38:06 +0800

Hi all,

i need your help with a layout.

I will redesign the DialogWindows in the sample app and take the CRUD buttons (now only with Images and Tooltiptext) on top in the toolbar as a block on their right side.

I struggled with a simple design. I have a toolbar where on the left side should be one button and on the right side should be a block of a few buttons.
In the ZK Visual editor it looks correct but on runtime under chrome the buttons are all on left.
Under IE8 it's correct.

Does anybody know how is the correct container/order for a all same looking.

		<borderlayout id="borderlayoutUser">

			<north border="none" margins="0,0,0,0">
				<div>
					<toolbar>

						<hbox width="100%">

							<div align="left">
								<button id="btnHelp"
									image="/images/icons/light_16x16.gif"
									tooltiptext="${c:l('btnHelp.tooltiptext')}" />
							</div>
							
								<div id="divSouth" align="right">
									<hbox spacing="3px"
										style="padding:3px" align="end">
										<button id="btnNew" height="20"
											label="${c:l('btnNew.label')}"
											tooltiptext="${c:l('btnNew.tooltiptext')}" />
										<button id="btnEdit" height="20"
											label="${c:l('btnEdit.label')}"
											tooltiptext="${c:l('btnEdit.tooltiptext')}" />
										<button id="btnDelete"
											height="20" label="${c:l('btnDelete.label')}"
											tooltiptext="${c:l('btnDelete.tooltiptext')}" />
										<button id="btnSave" height="20"
											label="${c:l('btnSave.label')}"
											tooltiptext="${c:l('btnSave.tooltiptext')}" />
										<button id="btnClose"
											height="20" label="${c:l('btnClose.label')}"
											tooltiptext="${c:l('btnClose.tooltiptext')}" />
									</hbox>
								</div>
							</hbox>
					
					</toolbar>
				</div>
			</north>

thanks
Stephan

PS: For all who have the sources. It's from the UserDialog.zul

delete flag offensive retag edit

4 Replies

Sort by ยป oldest newest

answered 2009-12-03 15:03:31 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

Push. Where are the great designers :-)

link publish delete flag offensive edit

answered 2009-12-03 16:08:49 +0800

jj gravatar image jj
638 3

In my experience, <div> is notoriously hard to be aligned correctly. Maybe you can try using a html table instead?

-JJ

link publish delete flag offensive edit

answered 2009-12-04 02:32:41 +0800

jhuber gravatar image jhuber
192 1 4

updated 2009-12-04 02:44:20 +0800

Maybe you could put everything into a grid.... (not tested with chrome but with Firefox & IE it's working)

<grid >
               <columns sizable="true" height="40px">
                  <column width="151px" align="center">
                     <div>
                        <hbox>
                           <button id="btnHelp"
				image="/images/icons/light_16x16.gif"
				tooltiptext="${c:l('btnHelp.tooltiptext')}" />
                        </hbox>
                     </div>
                  </column>
                  <column align="right">
                     <hbox>
                        <div>
                           <hbox spacing="3px"
										style="padding:3px" align="end">
										<button id="btnNew" height="20"
											label="${c:l('btnNew.label')}"
											tooltiptext="${c:l('btnNew.tooltiptext')}" />
										<button id="btnEdit" height="20"
											label="${c:l('btnEdit.label')}"
											tooltiptext="${c:l('btnEdit.tooltiptext')}" />
										<button id="btnDelete"
											height="20" label="${c:l('btnDelete.label')}"
											tooltiptext="${c:l('btnDelete.tooltiptext')}" />
										<button id="btnSave" height="20"
											label="${c:l('btnSave.label')}"
											tooltiptext="${c:l('btnSave.tooltiptext')}" />
										<button id="btnClose"
											height="20" label="${c:l('btnClose.label')}"
											tooltiptext="${c:l('btnClose.tooltiptext')}" />
									</hbox>
                        
                     </hbox>
                  </column>
               </columns>
            </grid>

link publish delete flag offensive edit

answered 2009-12-04 07:43:12 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

Many many thanks Juliane,

that works perfect.

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: 2009-12-02 15:33:12 +0800

Seen: 463 times

Last updated: Dec 04 '09

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