I used to fill the whole window as the default. I tried to resize the browser window: but the area used for the grid is the same. You must reload the page so that it matches. How can I archive this without reloading the page?
Edited by
An interesting fact is that when you change the order of the grid, the columns change.
did so:
$(window).resize(function () { $("#grid").height($("<container for grid>").height()); $(".slick-viewport").height($("#grid").height()); });
Thanks to the jQuery function and its height () function
This works great for me. Perhaps the resizeCanvas() function is a new function in a spotted grid.
resizeCanvas()
The code is CoffeeScript.
$(window).resize -> grid.resizeCanvas()
This works better than just changing the height of the .slick-viewport.
$(window).resize(function(){ var h=$(window).height(); $('#myGrid').css({'height':(h-65)+'px'}); grid.resizeCanvas(); });
Everything seems to work fine:
$( window ).resize( function() { grid.resizeCanvas(); });
Source: https://habr.com/ru/post/907334/More articles:https://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/907329/how-to-inject-a-single-factory-instance-to-multiple-repositories-and-unit-of-work-using-ninject&usg=ALkJrhgxJVK6hXl94YfRv4XNjfQbeDoFPQX11 Fullscreen Window (OpenGL) - fullscreenHow does console graphics work? (less curses, vi ...) - cCall Java new with a list of args constructors instead of args themselves (in Clojure) - constructorSQL: Why should CREATE TRIGGER be preceded by GO - sqlPassing a struct array with typedef into a function - cWhy is my int? the value was checked as if it were required? - c #Warning handling - Selenium WebDriver / Selenium RC 2.18.0 - Exception - c #NSDateFormatter does not show the time zone abbreviation for "Asia / Kolkata" for the specifier "z" or "zzz", only the GMT offset - iosHow can I use the + = operator in C to demonstrate that the same array index is used to refer to an array? - cAll Articles