Fix initial display height

Upon initially displaying the edit box does not have the correct height.
Updating the order of operations so that the editing block is displayed
first then resized.