-
-
Notifications
You must be signed in to change notification settings - Fork 537
Fix layout of endseq statistics panel #3297
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please try calculating the position values instead of hardcoding them? Not the biggest fan of magic numbers, as having to alter them every single time the text changes is quite cumbersome.
@bruhmoent
I'm a bit confused. I'm aware that -10 is a bit magic, but what do you propose? How should I calculate this? |
One way to do this is by defining a vector with the column widths - so when a change is made, the code will automatically update the appropriate values. You could then calculate a total width of all the columns, and with that the x column positions. After that, you could define clear and concise helper variables, responsible for things like the row's height, label's indent, etc; to allow for it to be easily changeable. Also, const correctness would be nice to include. |
9ffc84e
to
c7894e1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
twerks sooo hard
Fixes #3081