[Psi-devel] Re: AutoResize also should resize from top to bottom
Yves Goergen
nospam.list at unclassified.de
Thu Mar 24 08:30:29 PST 2005
On 24.03.2005 14:50 (+0100), Peter Thomassen wrote:
>>My version does the same thing as yours but works properly for the
>>shrinking case as well as the growing case.
>
> Mine too: Grow downwards by -5px, and move -5px upwards if necessary, i.e.
> shrink 5px at the bottom and move 5px downwards.
>
> I had this idea because somebody said that growing upwards is growing
> downwards and moving upwards, so we could save some steps. We just need to
> add the if statement.
Could be that was me.
You didn't get it I fear. This is pseudo-code, it's not about
efficiency. Your method, Peter, does not what was specified by the
discussion. If the window grows to the entire screen (or the maximum
allowed height or the top end or bottom end), how should it know that it
should shrink down- or upwards? So we need to remember the last intended
state.
--
Yves Goergen "LonelyPixel" <nospam.list at unclassified.de>
Unclassified NewsBoard Forum --> newsboard.unclassified.de
Free (GPL), easy to use and install, secure, innovative! (PHP+MySQL)
More information about the Psi-devel-affinix.com
mailing list