Issue #1182: Fix occasional incorrect vertical positioning when converting placeholder node to a real child