Fixed scaling and positioning issues on resolution change