Windows has the #SS_LEFTNOWORDWRAP flag. How to make its analogue for Linux? The behavior of gadgets has changed; if previously it increased in length, now words are transferred to the next line. In connection with this, there is an influx of text on StringGadget. If it works fine with one font, then a larger font leads to poor results.
1. You can make the window stretch, but you don’t always want to do this with percentage movement and changing the size of gadgets. I always do it in a simplified way, stretching only the input fields but not the static text.
2. Calculate the length of the text and trim it to a size that will fit without breaking it to a new line.
3. Perhaps Linux has a flag like Windows so that this happens without user intervention.
When I first got this problem, I didn't even realize that it was due to a word wrapping on a new line. Indelible text appeared in my input field. And after 5 minutes I realized that this was the result of a new behavior.
