0

I want to auto resize a ui-grid using the ui ui.grid.autoResize module but the ngStyle never applies

I have done this plunker to show what I mean

gblaise
  • 59
  • 9
  • do you want to set height for row element? – Pankaj Parkar Apr 16 '15 at 18:11
  • 1
    No, I want to dynamically change the style of the ui-grid div with ng-style, but it does not work properly, even with a 'manual' changing of the style: cf. the `angular.element` and `byQSelector.style.height` ligns (45 & 47) – gblaise Apr 17 '15 at 09:14

2 Answers2

1

Solution found. I have done a bad ng-style declaration ng-style="{{myStyle}}" instead of ng-style="myStyle"

gblaise
  • 59
  • 9
0

Autoresize works to resize the grid to the size of the container - it deals with resizes of your window. It doesn't resize the grid to the size of your data.

PaulL
  • 6,650
  • 3
  • 35
  • 39