Closed dgattey closed 1 year ago
Unfortunately this is actually a bug with Factorio itself that I cannot fix. This happens when your description wraps to a new line. I'm working on some in-depth testing with a simple test mod so I can report it to the developers.
To avoid this, insert line breaks in your descriptions manually.
You can't measure the height of the text box and figure out that it's two lines? Shoot, too bad. Hope you can get them on it.
Mods cannot read GUI element sizes at all. They can change depending on locale, and locale is not part of the deterministic game system so we cannot read it and anything that it directly affects. It can be a major pain.
Measuring number of characters and adding automatic line breaks to work around this is not feasible unless I use a monospace font, which I really don't want to do.
Wrapping strings is one of the only cases that is truly broken. 95% of the time it works fine, but this specific case has issues.
Thanks for the explanation, weird that the awesome mod support doesn't allow for locale usage.
Bug report: https://forums.factorio.com/100896
Sourcehut ticket: https://todo.sr.ht/~raiguard/factorio-mods/14
The width issue was fixed recently, but the scroll pane height issue remains.
So how did this get fixed Factorio updating or just figured it out?
I put in some really ugly code to work around it.
Describe the Bug
One more little thing - even with just one task, I can't see the full list if the task is expanded. If it's collapsed, there's no scroll bar that appears till I have a bunch of tasks. But if I expand that single task, suddenly the scroll bar appears (and feels unnecessary):
Task collapsed, looking good:
Task expanded, requiring unnecessary scrolling
To Reproduce
Steps to reproduce the behavior: