Fix issues with floats overflowing their container.

https://discoverygarden.atlassian.net/browse/IP-68