flexible-height plugin: removed extra spacing

Changed to use RebuildGrid() instead of UpdateGridLayout() to avoid leaving extra space for (absent) scrollbar.