-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(gridContainer): Revert body container id to previous.
This change will maintain the fix for issue #6096, but ensure that the body container maintain the same id that it had before it in order to allow for an easier upgrade for those who wrote their own automation for UI-Grid using the previous ID. This also updates the render container to start using the controllerAs paradigm on its template.
- Loading branch information
Showing
3 changed files
with
49 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
<div | ||
role="presentation" | ||
ui-grid-one-bind-id-grid="containerId + '-grid-container'" | ||
ui-grid-one-bind-id-grid="RenderContainer.gridContainerId" | ||
class="ui-grid-render-container" | ||
ng-style="{ 'margin-left': colContainer.getMargin('left') + 'px', 'margin-right': colContainer.getMargin('right') + 'px' }"> | ||
ng-style="{ 'margin-left': RenderContainer.colContainer.getMargin('left') + 'px', 'margin-right': RenderContainer.colContainer.getMargin('right') + 'px' }"> | ||
<!-- All of these dom elements are replaced in place --> | ||
<div ui-grid-header></div> | ||
<div ui-grid-viewport></div> | ||
<div | ||
ng-if="colContainer.needsHScrollbarPlaceholder()" | ||
ng-if="RenderContainer.colContainer.needsHScrollbarPlaceholder()" | ||
class="ui-grid-scrollbar-placeholder" | ||
ng-style="{height:colContainer.grid.scrollbarHeight + 'px'}"> | ||
ng-style="{height: RenderContainer.colContainer.grid.scrollbarHeight + 'px'}"> | ||
</div> | ||
<ui-grid-footer | ||
ng-if="grid.options.showColumnFooter"> | ||
ng-if="RenderContainer.grid.options.showColumnFooter"> | ||
</ui-grid-footer> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters