I am building a project where a popup appears where a person can view and change their personal information. It has a static and an edit mode (different containers conditionally visible based on an attribute). When I go into edit mode the page becomes so massive that it grows vertically, and becomes able to scroll. (I am okay with this for now) However, once I close this edit mode, the page retains its new size, leaving a massive white space at the bottom of my popup. Is there a way to have my popup shrink automatically? (Or have it grow based on the height of it’s contents)
There are some stuff on dialog, which is probably available on all window widgets, e.g.
You’ll have to store the original size and then restore to it, test
//simulate resize (executed on conditional visibility)
//simulate restore (executed on conditional visibility)