Re: algorithmic question

Charles Goodwin <[email protected]> Tue, 30 Mar 2004 12:18:33 +0000
Newsgroups gmane.comp.java.xwt.core
Organization XWT Foundation
Message-ID <[email protected]>
On Mon, 2004-03-29 at 12:03 +0000, Charles Goodwin wrote:
> What happens when a box, low down in the ascendency chain, resizes such
> that it affects the width of the column it is in?  How do you notify the
> parent that one of it's column widths has changed?  Or are you proposing
> two functions in Box.java, quick_resize() and full_resize(), for this?

There definitely needs to be two different directions for resizing, one
for the parent to resize and propogate changes downwards and another for
a child resizing with changes propogated upwards.

I'm reluctant to take this on because I really am far from in a
position, Java talent wise, to implement it properly.  I have made a
number of adjustments to Box.java to make it work better including
fixing Bug 471 and correcting colspan/rowspan semantics, so I hope to
have done a lot of the work for the correct 'parent propogating
downwards resize' pass.

There's still a small bug in it but I hoped to have broken all the
changes out in order to help isolate the problem I'm having, but darcs
is being a pain.  Was up 'til 5am last night because of darcs.  Lovely.

Never do mass 'no's to darcs record.  The next time you try to record it
seems to have forgotten an awful lot.  (First time, said 'no' around 20
changes, second time there were only 3 changes to say 'no' to.)

Still, darcs is still significantly better than CVS. ;)
-- 
- Charlie

Charles Goodwin <[email protected]>
Online @ http://www.charlietech.com