Getting the width and height of the document now returns the correct value in all...