8

As the title says, what is the difference between calling doLayout() and doComponentLayout() for a component in Sencha Touch? I tried having a look at the documentation, but it did not clearly explain this.

Nicodemuz
  • 3,539
  • 2
  • 26
  • 32

1 Answers1

8

The two are actually quite different. doLayout is a container method used to set the sizes of child components within the container. doComponentLayout is a component method used to size the elements (typically) that make up that component.

doLayout does not explicitly propagate to child containers; but since layouts are setSize driven, any changes in size to child components will trigger the appropriate ComponentLayout -> ContainerLayout.

rdougan
  • 7,217
  • 2
  • 34
  • 63