@BryanCrotaz In doc you have :
Note: When the width, min-width or max-width is specified in the column, this refers to the inner width of the column, not including padding and borders. A min-width specified in the css refers to the outer width and includes padding and borders.
It seems more natural to me that what you declare explicitly are the outer widths, as these are what the component needs to layout the grid. For instance rowHeight has to be the outer height of rows; once we get horizontal scrolling going we will also need to know the column widths. OTOH the user has complete control of what goes in the grid & how its styled.
Do we have a reliable method of reading widths and heights from css? If so we could write something like ("if you don't specify a width, ember-grid will use the width of an element styled in css as .ember-grid .cell; if you don't specify rowHeight ember grid will use height of element styled in css as .ember-grid .body .cell).
@BryanCrotaz In doc you have :
It seems more natural to me that what you declare explicitly are the outer widths, as these are what the component needs to layout the grid. For instance
rowHeighthas to be the outer height of rows; once we get horizontal scrolling going we will also need to know the column widths. OTOH the user has complete control of what goes in the grid & how its styled.Do we have a reliable method of reading widths and heights from css? If so we could write something like ("if you don't specify a width, ember-grid will use the width of an element styled in css as
.ember-grid .cell; if you don't specifyrowHeightember grid will use height of element styled in css as.ember-grid .body .cell).