Page MenuHome

UI: Fix for checkbox width calculation
ClosedPublic

Authored by Yevgeny Makarov (jenkm) on Sep 27 2020, 1:38 PM.

Details

Summary

UI: Fix for checkbox width calculation.

The button rect depends on "Line Width", this should be taken into account
when calculating the width of the checkbox. Although this is not particularly evident
due to int rounding, but it is here.

Diff Detail

Repository
rB Blender

Event Timeline

Yevgeny Makarov (jenkm) requested review of this revision.Sep 27 2020, 1:38 PM
Yevgeny Makarov (jenkm) created this revision.
Aaron Carlisle (Blendify) added inline comments.
source/blender/editors/interface/interface_widgets.c
4060

This comment should be updated because the factor is being removed.

This comment was removed by Yevgeny Makarov (jenkm).
Yevgeny Makarov (jenkm) marked an inline comment as done.
Yevgeny Makarov (jenkm) edited the summary of this revision. (Show Details)

Remove the changes to the text offset from this patch.

This revision is now accepted and ready to land.Sep 30 2020, 1:51 PM

I'm not that familiar with this code, but based on the description this seems like a reasonable change. It's still a bit unfortunate to have the numbers without any description here, like "6", but that's not necessarily in the scope of this patch.

This revision was automatically updated to reflect the committed changes.