gdepourtales / ng-cells

AngularJS Table directive that draws a table of data with different features
http://gdepourtales.github.io/ng-cells/
Other
77 stars 17 forks source link

Inner Div styles can't be overwritten when using percentages #14

Closed shammai closed 9 years ago

shammai commented 10 years ago

The inner div created within each cell (div cell-content or custom-cell-template etc.) has the styles of the td added to them. However, when using styles such as width if you specify the width in percentages then the inner div gets the same value.
Therefore, if the td width is 20% wide, then the inner div style will get 20% width. The problem with this approach is that the inner div percentage is relative to the TD and is therefore too small.

kayhadrin commented 10 years ago

Hi Shammai,

When I'm using ng-cells, I'm pretty sure I could customise the css to my own liking. Do you mind making an sample of this issue on codepen, jsfiddle, plunkr, (whatever drafting tool) so that I can see your issue?

Cheers,

David

On 11 July 2014 16:14, shammai notifications@github.com wrote:

The inner div created within each cell (div cell-content or custom-cell-template etc.) has the styles of the td added to them. However, when using styles such as width if you specify the width in percentages then the inner div gets the same value.

Therefore, if the td width is 20% wide, then the inner div style will get 20% width. The problem with this approach is that the inner div percentage is relative to the TD and is therefore too small.

— Reply to this email directly or view it on GitHub https://github.com/gdepourtales/ng-cells/issues/14.

gdepourtales commented 9 years ago

No update so closing