Palette elements position with scaling fix