Use explicit type conversions
Tweak stylesheets
Provide layout measurements at run-time