Draw trainer section before tree section

Previously, TreeSection was drawn before TrainerSection.
Reversing the order ensures TrainerSection layout is resolved first,
which fixes scroll state being computed against an incomplete
structree page render.

Fixes #8893
This commit is contained in:
mehmed-faheim-arslan 2026-06-09 23:54:36 +01:00 committed by Mehmed Faheim Arslan
parent 39b1311fac
commit 50e1f51755

View file

@ -53,8 +53,8 @@ class StructreePage extends ReferencePage
this.CivHistory.caption = this.civData[this.activeCiv].History || "";
const templateLists = this.TemplateLister.getTemplateLists(this.activeCiv);
this.TreeSection.draw(templateLists.structures, this.activeCiv);
this.TrainerSection.draw(templateLists.units, this.activeCiv);
this.TreeSection.draw(templateLists.structures, this.activeCiv);
}
}