I must be slow today - I don't get it. If there is a preferred width or height set, the window can use that to implement the restore function.
Surely, if there is no explicitly set width/height, the restore function will just restore to the "natural" size?? Greg Brown wrote: > If the preferred size is not explicitly set, the window is set to its default > size and we disallow resizing. Otherwise, we allow the user to change the > size. > > We could allow the user to resize the window in either case, but then there > would be no way for the user to tell the window to revert to its > automatically calculated preferred size. We could add a button to the window > trim that supported this, but for now we just disallow resizing in this case. > > > On Tuesday, October 27, 2009, at 09:43AM, "Noel Grandin" > <[email protected]> wrote: > >> Hi >> >> I'm looking at resizing support for Sheet, which is so far a pretty >> copy'n'paste of the code from Frame, but one thing I don't get - the way >> Pivot handles preferred-size. >> >> Why is resizing support on Frame conditional on a preferred-width or a >> preferred-height being set? >> >> Thanks, Noel. >> >> >>
