Skip to content
This repository has been archived by the owner on Aug 5, 2019. It is now read-only.

CellTable Column HorizontalAlignment.ALIGN_RIGHT doesn't work #498

Open
juricaviskovic opened this issue Apr 16, 2014 · 3 comments
Open

Comments

@juricaviskovic
Copy link
Contributor

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
Copy link
Contributor

reinert commented Apr 24, 2014

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

@juricaviskovic
Copy link
Contributor Author

my workaround

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

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

@reinert
Copy link
Contributor

reinert commented Apr 24, 2014

Thanks for sharing!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants