[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kfm-devel
Subject:    [TESTCASE] khtml and table widths
From:       Ladislav Strojil <Ladislav.Strojil () seznam ! cz>
Date:       2002-07-18 7:57:34
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

recent commits by Dirk Mueller broke table rendering for me. 

See the test case at http://www.strojil.cz/khtml_testcase.html

It seems to me, that the widht is calculated by:
a) making columns without width specified as small as possible
b) taking the sum of the remaining sums and distributing the remaining space 
in specified ratios.

So if you have three columns, two with 20% and one without width specified, 
those two get 50% of what is left each.

The problem seems to be in 
void RenderTable::calcColMinMax()
in khtml/rendering/render_table.cpp

This is a bug, isn't it? :-))

Cheers,
Lada

- -- 
    ~       Ladislav Strojil, MFF UK
  ' v '               
 //   \\              
/(     )\    Powered by Penguin.
  ^ ' ^
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9NnTvTnMZPFqq4nwRAuAoAKCCMik0LOgv5IjDOwMtt1IDoX7I0ACg827z
ntFX9p4qO8/BFnYzjq0kt8o=
=gw3Y
-----END PGP SIGNATURE-----

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic