Angular UI Grid根据内容调整行高

Sha*_*Ham 5 angularjs angular-ui-grid

是否可以调整网格中的行高以显示整个内容?

Adi*_*thi 2

你必须覆盖引导CSS

.ngCell  {
  display : table-cell;
  height: auto !important;
  overflow:visible;
  position: static;
}

.ngRow {
  display : table-row;
  height: auto !important;
  position: static;
}

.ngCellText{
  height: auto !important;
  white-space: normal;
  overflow:visible;
}
Run Code Online (Sandbox Code Playgroud)

  • .ui-grid-cell { 显示:表格单元格;高度:自动!重要;溢出:可见;位置:静态;} .ui-grid-row { 显示:表格行;高度:自动!重要;位置:静态;} .ui-grid-cell-contents{ 高度:自动!重要;空白:正常;溢出:可见;} (3认同)