gwtbootstrap / gwt-bootstrap

A GWT Library that provides the widgets of Bootstrap, from Twitter.
http://gwtbootstrap.github.com
405 stars 190 forks source link

CellTable Column HorizontalAlignment.ALIGN_RIGHT doesn't work #498

Open juricaviskovic opened 10 years ago

juricaviskovic commented 10 years ago

Setting column.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT) doesn't have any effects.

Problem is that it's setting align="right" on td element but we have div element in td so the alignment has no effects.

reinert commented 10 years ago

Have you tried debugging with Developer Tools, changing the style of elements in chain to see where does the aligment does affect?

juricaviskovic commented 10 years ago

my workaround

Java code: column.setCellStyleNames("textAlignRight");

css code: .textAlignRight div{text-align: right}

reinert commented 10 years ago

Thanks for sharing!