Render ports at correct positions.

If code block resized due to increasing/decreasing of input area we should render ports and connection again.