(float width, float height)
| 86 | } |
| 87 | |
| 88 | @Override |
| 89 | protected final void doLayout(float width, float height) { |
| 90 | if ((GuiBase.isAndroid() && Forge.isLandscapeMode())||(width > height)) { |
| 91 | doLandscapeLayout(width, height); //handle landscape layout special |
| 92 | } else if (header != null) { |
| 93 | header.setBounds(0, 0, width, header.getPreferredHeight()); |
| 94 | doLayout(header.getHeight(), width, height); |
| 95 | } else { |
| 96 | doLayout(0, width, height); |
| 97 | } |
| 98 | } |
| 99 | |
| 100 | protected abstract void doLayout(float startY, float width, float height); |
| 101 |
no test coverage detected