title: Auto-resize popup window
body: <p>I have a popup window that is launched with a WxL dimension, where W = width, and L = length.</p>
  
  <p>The content fits well in that area for a few screens. However, in some cases (views that appear conditionally), the window size is not big enough and ends up showing a scrollbar. </p>
  
  <p>The ask here is - How can we auto-adjust the popup window size so that it resizes itself (based on the content), and hence avoid the scrollbar in all cases.</p>
  
  <p>One crude option is to get the max size of all possible views that can appear within the window and always (pre)set that as the size of the window, i.e., something like (W+w)x(L+l). However, that's not ideal/preferable since some of the views do not have much content in them and would look awkward with a larger popup size.</p>