Skip to content

Wrong vertical alignment when TextField is aligned MIDDLE_CENTER #9

Description

@amahdy

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);

    }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions