I have managed to fix the problem by changing the value of Min Desired Slot Height of the my Uniform Grid Panel.