cogentcore / core

A free and open source framework for building powerful, fast, elegant 2D and 3D apps that run on macOS, Windows, Linux, iOS, Android, and the web with a single Go codebase, allowing you to Code Once, Run Everywhere.
http://cogentcore.org/core
BSD 3-Clause "New" or "Revised" License
1.7k stars 79 forks source link

Everything seems to have shifted by a couple of pixels at some point #810

Closed kkoreilly closed 8 months ago

kkoreilly commented 8 months ago

I think after I made some changes to mat32.

kkoreilly commented 8 months ago

I fixed this in the commits above; the problem was caused by a rounding error involving our TotalMargin and BoxSpace logic, and the solution was to round early whenever TotalMargin is used.