Fixed wrong scaling calculation in overlay component for Chrome