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

Weird behaviour when toggling visibility of components under it #144

Closed
syampillai opened this issue Jun 11, 2018 · 2 comments
Closed

Weird behaviour when toggling visibility of components under it #144

syampillai opened this issue Jun 11, 2018 · 2 comments
Labels
bug Something isn't working component flow

Comments

@syampillai
Copy link

Layout behaviour of FormLayout changes when we toggle the visibility of components under it.

An example Java code is given below. The "Test" button can be clicked to toggle the visibility of the first TextField.

Before Hiding:
beforehiding

After Hiding:
afterhiding

When the text field is made hidden, gaps between rest of the text fields disappear! Screen-shots are shown above.

public class TestFormLayout extends FormLayout {
        public TestFormLayout() {
            TextField tf = new TextField("One");
            add(new Button("Test", e -> tf.setVisible(!tf.isVisible())));
            add(tf);
            add(new TextField("Two"));
            add(new TextField("Three"));
            add(new TextField("Four"));
            add(new TextField("Five"));
            add(new TextField("Six"));
        }
    }
@marcelo107
Copy link

I also have encountered this problem. Are there any workarounds in the mean time?

@vaadin-bot vaadin-bot added bug Something isn't working component flow labels Oct 6, 2020
@vaadin-bot vaadin-bot transferred this issue from vaadin/vaadin-form-layout-flow Oct 6, 2020
@web-padawan
Copy link
Member

Fixed by #123 and works properly since Vaadin 14.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working component flow
Projects
None yet
Development

No branches or pull requests

4 participants