[ENH]HTMLTableMorph

Karl Ramberg karl.ramberg at chello.se
Sat Nov 2 12:39:17 UTC 2002


danielv at netvision.net.il wrote:
> 
> Ok, I did my experiment with slashdot first (a site I remembered looked
> terrible on Scamper, and didn't hold much hope for). Well, it still
> looked bad enough I couldn't figure out exactly what was going on, but
> it was in the right format, with errors, not strung out indeterminately,
> as is was before.
> 
> Anyway, switched over to lwn.net, and that is actually readable now!
> Two biggest problems I saw:
> 1. Frames sometimes overlap. If they're located wrong, I can deal with
> that, but if things are occluded, they're much harder to read ;-)

Thats the table in table bug. 
 
> 2. Frames (and maybe text?) sometimes seem to extend beyond the limits
> of their containing frames.
> 
> I tried to figure out why all the frames have borderWidth 2 (which is
> not critical, ), while the HTML specifies width 0, but couldn't find
> where that was set...

It's just the default look for RectangleMorphs, wich table is a sub class
off. The table has a border and the cell has a border. Seeing where the 
stuff is located makes it easier while figuring out what is going on
during development.

If you look in HtmlTable>>addToFormatter: and HtmlTableDataItem>>addToFormatter:
you can add stuff that set borderwidth quite easy in this form:
width _ (self getAttribute: 'width').
Karl



More information about the Squeak-dev mailing list