Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong vertical alignment when TextField is aligned MIDDLE_CENTER #9

Open
amahdy opened this issue Sep 15, 2015 · 0 comments
Open

Wrong vertical alignment when TextField is aligned MIDDLE_CENTER #9

amahdy opened this issue Sep 15, 2015 · 0 comments

Comments

@amahdy
Copy link

amahdy commented Sep 15, 2015

The 'x' button is not well positioned vertically if I use this code:

    @Override
    protected void init(VaadinRequest vaadinRequest) {
        final VerticalLayout layout = new VerticalLayout();
        setContent(layout);

        final TextField tf = new TextField();
        ResetButtonForTextField.extend(tf);

        layout.addComponent(tf);
        layout.setComponentAlignment(tf, Alignment.MIDDLE_CENTER);

    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant