Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Frame padding offsets InputFloat/InputInt buttons text #2367

Closed
LMCrashy opened this issue Feb 19, 2019 · 2 comments
Closed

Frame padding offsets InputFloat/InputInt buttons text #2367

LMCrashy opened this issue Feb 19, 2019 · 2 comments
Labels

Comments

@LMCrashy
Copy link

Hi,
I've spotted that changing the frame padding value also offsets the inner text (+/-) in the controls buttons of the InputFloat/InputInt widgets

frame padding
(picture from the samples, last revision, using a frame padding of 13. With larger values the text isn't even visible)

Workaround is to push a zero padding before creating an InputFloat control.
Thanks.

@ocornut ocornut added the style label Feb 19, 2019
ocornut added a commit that referenced this issue Feb 19, 2019
…uttons centered when style.FramePadding.x is abnormally larger than style.FramePadding.y. Since the buttons are meant to be square (to align with e.g. color button) we always use FramePadding.y. (#2367)
@ocornut
Copy link
Owner

ocornut commented Feb 19, 2019

Pushed a fix for this now, thank you.

@ocornut ocornut closed this as completed Feb 19, 2019
@LMCrashy
Copy link
Author

Woah that was fast ! Thank you Omar !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants