Option button text align?
Posted: Sun Jan 27, 2019 1:54 pm
While I was playing with buttons today, I noticed something a bit 'quirky' about the option button text.
By default, the text is aligned centered (theoretically) on the button, however, if you choose the align right instead, the text actually moves left about a space. This only happens if you leave the button at its default size or smaller, and apparently goes all the way back to version 3 of the IDE. Rev 2.2.1 notably does not do this, but 3.x through 8.1.2 do.
Pics from 8.1.2 - I am guessing it has something to do with the margin and how Lc determines boundaries on the buttons label, since if you increase the width of the button it works correctly, but should this be reported as a bug and fixed? Obviously it isn't difficult to work around, but I can't imagine too many people want to make their buttons wider than they have to.
By default, the text is aligned centered (theoretically) on the button, however, if you choose the align right instead, the text actually moves left about a space. This only happens if you leave the button at its default size or smaller, and apparently goes all the way back to version 3 of the IDE. Rev 2.2.1 notably does not do this, but 3.x through 8.1.2 do.
Pics from 8.1.2 - I am guessing it has something to do with the margin and how Lc determines boundaries on the buttons label, since if you increase the width of the button it works correctly, but should this be reported as a bug and fixed? Obviously it isn't difficult to work around, but I can't imagine too many people want to make their buttons wider than they have to.