I m facing problem trying to set horizontal layout to LoginForm of Vaadin. The only solution for which I have an idea is overriding getLoginHTML() class so that it return the proper code. I ve added style="float:left" which worked for me in normal html.
部分法典的修改反映了这一点:
(...) + "<div class= v-app v-app-loginpage style="background:transparent;">"
+ "<iframe name= logintarget style= width:0;height:0;"
+ "border:0;margin:0;padding:0 ></iframe>"
+ "<form id= loginf target= logintarget onkeypress="submitOnEnter(event)" method="post">"
+ "<div style="float: left;">"
+ getUsernameCaption()
+ "</div><div style="float: left;">"
+ "<input class= v-textfield style="float: left;" type= text name= username ></div>"
+ "<div style="float: left;">"
+ getPasswordCaption()
+ "</div>"
+ "<div style="float: left;"><input class= v-textfield style= display:inline; float:left; type= password name= password ></div>"
+ (...)
这种做法是顺便说一句的:用户的田地和口号是相同的,而其他所有的人都是不同的。 因此,它希望:
用户名
用户外勤密码
密码:
Button
And as I said I would like it to be algined horizontally... any ideas?