Fixed the logic that leaves gaps in the Grid for Text Blocks and Boxes. If the Text Blocks or the Boxes are outside the range of the plot.