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

Cell width changes when changing page #292

Closed
olalonde opened this issue Jul 17, 2013 · 2 comments
Closed

Cell width changes when changing page #292

olalonde opened this issue Jul 17, 2013 · 2 comments

Comments

@olalonde
Copy link

Whenever I sort or change page, the cell's width change. Is there any way to give my cells a fixed width? Each column should have a different width. This is difficult to do right now as there is no way to give a unique class to my columns.

@olalonde
Copy link
Author

One work around for now:

cell: Backgrid.StringCell.extend({
  className: 'string-cell someCustomClass'
}
.backgrid td {
  word-break: break-all;
  white-space: normal;
}

.backgrid .someCustomClass {
  width: 10%;
}

@wyuenho
Copy link
Contributor

wyuenho commented Jul 25, 2013

You can also try one of those methods mentions in #6 as well. colResizable seems to work fairly well.

@wyuenho wyuenho closed this as completed Jul 25, 2013
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