0

ZK 6 hlayout align right

asked 2012-03-06 18:49:23 +0800

shumy gravatar image shumy
244 1

How do I align a <div> inside a <hlayout> to the right.
I have tested with <div align="right"> and <div style="float: right;"> and nothing works.

It seems that the <hlayout> is wrapping every thing in a <div> that is not assuming the child alignement.

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2012-03-06 19:23:21 +0800

mhj gravatar image mhj flag of Brazil
806 1 7

hi shumy
look at that

ZKFiddle-Link

TestComposer.java
package j3q1bqb1$v1;

import org.zkoss.zk.ui.*;
import org.zkoss.zk.ui.event.*;
import org.zkoss.zk.ui.util.*;
import org.zkoss.zk.ui.ext.*;
import org.zkoss.zk.au.*;
import org.zkoss.zk.au.out.*;
import org.zkoss.zul.*;

public class TestComposer extends GenericForwardComposer{

public void doAfterCompose(Component comp) throws Exception {
super.doAfterCompose(comp);

}

public void onClick$btn(Event e) throws InterruptedException{
Messagebox.show("Hi btn");
}
}


index.zul
<zk>
<window border="normal" title="hello" apply="j3q1bqb1$v1.TestComposer">
<hlayout>
<div hflex="true">test1</div>
<div>test2</div>
</hlayout>
</window>
</zk>

i hope helped you..

link publish delete flag offensive edit

answered 2012-05-15 14:57:46 +0800

zes gravatar image zes
30

It works, thank you !

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: 2012-03-06 18:49:23 +0800

Seen: 435 times

Last updated: May 15 '12

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