In an ng grid, I need to set the height to 100% so that it is always the height of the parent container (another div wrapping the div grid) even when the window is resized. How should I do it? {height : 100%}doesn't allow it?
{height : 100%}
https://github.com/angular-ui/ng-grid/issues/80
At the very end, the savior added an answer. 100% height allowed with latest versions. Also after that, for me the heading remains constant
This is what worked for me.
.ui-grid { position: absolute; height: auto; top: 0; left: 0; right: 0; bottom: 0; }
- , @dcryan22, . , .
, .ui-grid, .
.ui-grid
This article answered the use of the CSS viewport. Works great for me!
I added this to CSS:
.ui-grid { height: 98vh; }
I use twitter bootstrap, but don't even need extra divs or containers.
Source: https://habr.com/ru/post/1539858/More articles:Serializing JRuby CompiledScript in Java - javaAbout running .class files created by JRuby - javaКак передать 2 типа генериков в метод расширения - genericstypeahead.js enter key search - javascriptEmbedding JRuby in Java code with rvm jruby install - javaget initial ngModel value in directive - angularjsDouble freedom or damage when using a destructor - c ++C ++ command line from text file - c ++последовательно вызывающие временные методы объекта - c++Where are asynchronous operations waiting when they can't handle them? - asynchronousAll Articles