Fix form scaling issue on linux (#505)

Closes #505