Santoso wrote:
> My question are :
> 1. How to retrieve the unconstrained width, height and the max element
> width? (where is the code that works on this?)

Retrieve it from where?  You should be able to get it out of the reflow 
metrics if you're the one calling Reflow() on the table...

> 2. How does the balancing process work?
> Somehow, I need to know the detail process and I can't find it in the code
> (it's quite complicated) :(

Yes.  That's because balancing such that you're bug-compatible with IE 
and NS4 is black magic.  The balancing is handled by
http://lxr.mozilla.org/seamonkey/source/layout/html/table/src/BasicTableLayoutStrategy.cpp
 
for table-layout:auto and by 
http://lxr.mozilla.org/seamonkey/source/layout/html/table/src/FixedTableLayoutStrategy.cpp
 
for table-layout:fixed.  See the BalanceColumnWidths() methods in those 
classes.


Reply via email to