Changed how div resolutions is calculated and applied.