Add a method to fix dialog height and scrolling