fixed bug, where modmenu wouldn't have scroll
This commit is contained in:
@@ -27,8 +27,12 @@ public class AnimationStagger extends Element {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ElementRenderer.draw(children, element);
|
ElementRenderer.draw(children, element);
|
||||||
|
|
||||||
|
this.height = Math.max(this.height, element.y + element.height);
|
||||||
|
this.width = Math.max(this.width, element.x + element.width);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void render(RenderScope renderScope, ElementContext ctx) {
|
public void render(RenderScope renderScope, ElementContext ctx) {
|
||||||
ElementRenderer.render(children, ctx.elapsed, renderScope,
|
ElementRenderer.render(children, ctx.elapsed, renderScope,
|
||||||
|
|||||||
Reference in New Issue
Block a user