Skip to content
Verified Commit 1cbea44b authored by ivan tkachenko's avatar ivan tkachenko 🗯
Browse files

Units: Round up font height for gridUnit instead of silently truncating it

Implicit coercion rules of C++ allowed this truncation to happen
silently without warnings. We should be explicit about it, and also
make sure that gridUnit is large enough to accommodate a text label
without causing vertical clipping.

Note that with default Noto Sans font metrics height is 17.703125, while
Label with that font has an implicit height of 18px.
parent acd495ee
Pipeline #484687 passed with stage
in 3 minutes and 43 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment