1

version : extjs-5.0

ExtJs grid has a property reserveScrollbar which reserves space for scroll bar. I've a window with layout : 'absolute' which is the container for grid.

Now the problem is, the grid doesn't reserve space for scroll bar. Many forum say the container should use layout:'fit' to make it work. However I want it to be layout : 'absolute' only.

I set exact width and height for the grid and for its columns. I expect grid to reserve space from its width.(Leaving this to Sencha).

Is there any fix for this?

CodZilla
  • 151
  • 1
  • 1
  • 9

1 Answers1

0

You could place the grid inside a container or panel that has layout: 'fit'. The container can then be within a window that has layout: 'absolute'. You can then set the height and width for the container instead of the grid.

See example fiddle here.

chrisuae
  • 1,092
  • 7
  • 8