fix when render(): elementHeight should be scaled in enterDocument()