Skip to content

Wrong vertical alignment when TextField is aligned MIDDLE_CENTER #9

@amahdy

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

    }

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