()
| 98 | } |
| 99 | |
| 100 | public void layout () { |
| 101 | if (sizeInvalid) computeSize(); |
| 102 | float width = getWidth(), height = getHeight(); |
| 103 | Array<Actor> children = getChildren(); |
| 104 | for (int i = 0, n = children.size; i < n; i++) { |
| 105 | Actor child = children.get(i); |
| 106 | child.setBounds(0, 0, width, height); |
| 107 | if (child instanceof Layout) ((Layout)child).validate(); |
| 108 | } |
| 109 | } |
| 110 | |
| 111 | public float getPrefWidth () { |
| 112 | if (sizeInvalid) computeSize(); |
nothing calls this directly
no test coverage detected