Hi, Isomorphic Team
I'm experiencing a problem with the TextItem form.
The TextItem form is moving when I'm trying to do a momentum scroll vertically.
The way to reproduce this problem :
1. Tap the TextItem form until you get a focus.
2. Do the momentum scroll vertically and the TextItem form should be moving around.
Please kindly find the attached screenshot of the moving TextItem form.
I am using smartgwt-mobile-1.0d_2013-08-29 and here is the code:
public class LoginPage extends NavStack
{
protected TextItem txtUser;
protected PasswordItem txtPwd;
protected DynamicForm dynamicForm;
protected Button btnIn;
protected Button btnOut;
protected HLayout buttonLayout;
public LoginPage()
{
super("");
initialize();
}
public void showLoginPage()
{
clear();
txtUser.setValue("");
txtPwd.setValue("");
showLoginForm();
}
protected void initialize()
{
txtUser = new TextItem("user", "User ID", "User ID");
txtPwd = new PasswordItem("password", "Password", "Password");
dynamicForm = new DynamicForm();
dynamicForm.setFields(txtUser, txtPwd);
btnIn = new Button(MobileUtils.getCommonLabel().btn_in(), Button.ButtonType.ACTION_IMPORTANT);
btnIn.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event)
{
login();
}
});
btnOut = new Button(MobileUtils.getCommonLabel().btn_exit(), Button.ButtonType.ACTION_IMPORTANT);
btnOut.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event)
{
MobileUtils.exit();
}
});
buttonLayout = new HLayout();
buttonLayout.addMember(btnIn);
buttonLayout.addMember(btnOut);
buttonLayout.setAlign(Alignment.CENTER);
showLoginForm();
}
protected void showLoginForm()
{
Panel widgets = new Panel("Login");
widgets.addMember(dynamicForm);
widgets.addMember(new HRWidget());
widgets.addMember(buttonLayout);
push(widgets);
}
}
Has anyone else experiencing this? Or has anybody got any suggestion? Thanks.
Best Regards,
Deyo
I'm experiencing a problem with the TextItem form.
The TextItem form is moving when I'm trying to do a momentum scroll vertically.
The way to reproduce this problem :
1. Tap the TextItem form until you get a focus.
2. Do the momentum scroll vertically and the TextItem form should be moving around.
Please kindly find the attached screenshot of the moving TextItem form.
I am using smartgwt-mobile-1.0d_2013-08-29 and here is the code:
public class LoginPage extends NavStack
{
protected TextItem txtUser;
protected PasswordItem txtPwd;
protected DynamicForm dynamicForm;
protected Button btnIn;
protected Button btnOut;
protected HLayout buttonLayout;
public LoginPage()
{
super("");
initialize();
}
public void showLoginPage()
{
clear();
txtUser.setValue("");
txtPwd.setValue("");
showLoginForm();
}
protected void initialize()
{
txtUser = new TextItem("user", "User ID", "User ID");
txtPwd = new PasswordItem("password", "Password", "Password");
dynamicForm = new DynamicForm();
dynamicForm.setFields(txtUser, txtPwd);
btnIn = new Button(MobileUtils.getCommonLabel().btn_in(), Button.ButtonType.ACTION_IMPORTANT);
btnIn.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event)
{
login();
}
});
btnOut = new Button(MobileUtils.getCommonLabel().btn_exit(), Button.ButtonType.ACTION_IMPORTANT);
btnOut.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event)
{
MobileUtils.exit();
}
});
buttonLayout = new HLayout();
buttonLayout.addMember(btnIn);
buttonLayout.addMember(btnOut);
buttonLayout.setAlign(Alignment.CENTER);
showLoginForm();
}
protected void showLoginForm()
{
Panel widgets = new Panel("Login");
widgets.addMember(dynamicForm);
widgets.addMember(new HRWidget());
widgets.addMember(buttonLayout);
push(widgets);
}
}
Has anyone else experiencing this? Or has anybody got any suggestion? Thanks.
Best Regards,
Deyo