带有角度 js 的 ng-grid 在页面加载时不会占用 100% 的宽度。这是我的代码:
<tabs ng-cloak>
<pane title="Test Plan">
<tabs>
<pane title="Include Tests">
<div ng-controller="includedTestPlanGridCntrl">
<div class="gridStyle" ng-grid="gridOptions"></div>
</div>
</pane>
<pane title="Excluded Tests">
<div ng-controller="excludedTestPlanGridCntrl">
<div class="gridStyle1" ng-grid="gridOptions"></div>
</div>
</pane>
</tabs>
</pane>
<pane title="Advanced Planning">
Some text here
</pane>
</tabs>
如果我调整大小,网格会正确显示。