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

Flow layout does not re-render when no childs initially #9553

Open
mbgonicus opened this issue Aug 1, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@mbgonicus
Copy link
Contributor

commented Aug 1, 2018

In this playground example (see also below) I create a container with a flow layout and let it render. After a second, it adds a label in the then empty container.

Expectation: After the timeout, I can see the label.
Is: After the timeout, the label is invisible .

Remarks:

  • In the dom, the elements are present, but the container has a height of 0.
  • If you uncomment the line such that the container has a widget initially, both labels are visible as expected.
  • The behaviour is identical in master and devel playground.
var container = new qx.ui.container.Composite(new qx.ui.layout.Flow());
var label1 = new qx.ui.basic.Label("Label 1");
var label2 = new qx.ui.basic.Label("Label 2");

// container.add(label1);

qx.event.Timer.once(function() {
  container.add(label2);
}, null, 1000);

this.getRoot().add(container);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.