Ext js sets the height of the dynamic grid height when autoHeight is already set

I am trying to switch the height from the grid when the initial setting has autoheight. I want to be able to switch the height when the grid becomes larger than the view of the browser.

The grid is on a regular page without an ext viewport.

If I try to set this height, I will lose the scroll bar. I see in firebug that the overflow is set to visible, not auto. How to change this?

mygrid.autoHeight=false;
mygrid.setHeight(200);

If I leave autoHeight true from the initial grid setup, I have no way to determine the height needed for the rows.

Maybe someone has a solution / workaround for this problem?

Thanks, adv, Richard

EDIT

I think it will work

var scroller = Ext.select("#grid-rekovz div.x-grid3-scroller");
scroller.setStyle('overflow-y','auto');
+2
1

autoHeight: true; , . autoHeight: false; , , , .

. S. , =).

0

Source: https://habr.com/ru/post/1768014/


All Articles