Closed JustAGuest4168 closed 1 year ago
It looks like it's not an easy thing to fix without straight up disabling the feature, so unfortunately I'll have to mark this as a nofix. If anyone is able to fix this I'll be happy to merge a PR.
For now I added a warning to the readme https://github.com/BepInEx/BepInEx.Utility/commit/ba276feebe3880c80ab6689f57006311ce7eea07
When nesting Vertical and Horizontal Groups, I discovered an issue with a Button with
ExpandHeight(true)
inside a Horizontal Group nested inside another Vertical Group withExpandHeight(false)
causing the Vertical GroupsExpandHeight(false)
to be negated. Screenshots of with and without BepInEx.OptimizeIMGUI and condensed sample code below.Without BepInEx.OptimizeIMGUI (Correct):
With BepInEx.OptimizeIMGUI (Incorrect):
Condensed Sample code: