-
FEATURED COMPONENTS
First time here? Check out the FAQ!
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.
hi shumy
look at that
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");
}
}
<zk>
<window border="normal" title="hello" apply="j3q1bqb1$v1.TestComposer">
<hlayout>
<div hflex="true">test1</div>
<div>test2</div>
</hlayout>
</window>
</zk>
Asked: 2012-03-06 18:49:23 +0800
Seen: 435 times
Last updated: May 15 '12