On Sun, Mar 31, 2013 at 9:26 PM, Pete Goodeve <pete.goodeve@xxxxxxxxxxxx>wrote: > On Sun, Mar 31, 2013 at 03:07:00PM -0700, Pete Goodeve wrote: > > > > I think I'm close to a cleaned-up version of PatchBay, but I have > > a question or two before I finish things off. > > ... and another I forgot to ask. > > Currently PatchBay opens with a panel that is much larger than > I've ever come close to needing, with the active nodes all displayed > in the top-left corner. To me, this looks ugly. > > What do people think about auto-resizing windows? I can't really > think of another app that would need one, but here it might be > nice if the window opened just large enough to hold the available > nodes, and expanded and contracted as needed. > > Would this be convenient or annoying? I haven't really investigated > implementing it yet, but I think it would be straightforward. > If your code is using the layout APIs and your window has the B_AUTO_UPDATE_SIZE_LIMITS flag set it might be as simple as adding AddGlue() in the right places. If not, you may have to convert to using the Layout APIs first.