Fixed logic scroll bar glitch

This commit is contained in:
Anuken
2024-08-24 16:01:06 -04:00
parent 22bd8c634f
commit 6e3cc13a26

View File

@@ -128,6 +128,8 @@ public class LCanvas extends Table{
if(toLoad != null){ if(toLoad != null){
load(toLoad); load(toLoad);
} }
Core.app.post(() -> statements.invalidateHierarchy());
} }
@Override @Override
@@ -257,7 +259,7 @@ public class LCanvas extends Table{
} }
} }
invalidateHierarchy(); if(parent != null) parent.invalidateHierarchy();
if(parent != null && parent instanceof Table){ if(parent != null && parent instanceof Table){
setCullingArea(parent.getCullingArea()); setCullingArea(parent.getCullingArea());