[Seaside] How do I widen this column?

Jupiter Jones jupiter.jones at mail.com
Sun May 30 20:27:37 UTC 2021


Hi David,

It’s up to the browser how things are rendered - collapsing tables can be a pain. In this case the Current Balance column is wider than the Amount column because “Current Balance” is a longer string than “Amount"

As Esteban mentioned, the only way to control presentation is css.

If you want seaside to have a say in presentation (ie. by providing css), just use the #style: method…

html tableData 
	style: 'min-width: 10em;whitespace: nowrap;’;
	with: [ myNumber printString ]

It’s still probably better to add all your styling to an external stylesheet. Without careful planning, embedding css in smalltalk can become harder to maintain.

Cheers

> On 30 May 2021, at 8:56 pm, David Pennington <david at lhdavid.co.uk> wrote:
> 
> I have some columns in a page that display amounts. As you can see, one of the columns is wide enough for the minus sign but the other column is too narrow and the minus is forced onto the line above.
> 
> Both entries come from the same printString code so there should be no difference in their presentation.
> 
> Can anyone explain how to sort this out?
> 
> David
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/seaside/attachments/20210531/605a29dd/attachment.html>


More information about the seaside mailing list