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 [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Can't you specify the width of the column via CSS? You can use the width or the min-width properties for the element. html td class: 'number'; with: row moneyValue td.number { min-width: 10em; whitespace: nowrap; } El dom., 30 de mayo de 2021 07:56, David Pennington <[hidden email]> escribió: 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. _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
In reply to this post by David Pennington-3
I forgot to add the image:
_______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
In reply to this post by David Pennington-3
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
_______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Free forum by Nabble | Edit this page |