Skip to content

Commit a8ac76c

Browse files
committed
fix(Selection): Remove IE11 ellipsis in header
For some reason IE11 turns the   in the selection row header's header cell into an ellipsis. Adding text-overflow: clip to .ui-grid-contents fixes this but as a custom headerCellTemplate has to be defined, the easier thing is just to remove all the unneeded stuff from the header cell completely. This change will probably be overwritten if and when we use the header cell to actually do something.
1 parent ffa8000 commit a8ac76c

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

src/features/selection/js/selection.js

+8-2
Original file line numberDiff line numberDiff line change
@@ -389,8 +389,14 @@
389389
pre: function ($scope, $elm, $attrs, uiGridCtrl) {
390390
uiGridSelectionService.initializeGrid(uiGridCtrl.grid);
391391
if (uiGridCtrl.grid.options.enableRowHeaderSelection) {
392-
var cellTemplate = 'ui-grid/selectionRowHeader';
393-
var selectionRowHeaderDef = { name: 'selectionRowHeaderCol', displayName: '', width: 30, cellTemplate: cellTemplate};
392+
var selectionRowHeaderDef = {
393+
name: 'selectionRowHeaderCol',
394+
displayName: '',
395+
width: 30,
396+
cellTemplate: 'ui-grid/selectionRowHeader',
397+
headerCellTemplate: 'ui-grid/selectionHeaderCell'
398+
};
399+
394400
uiGridCtrl.grid.addRowHeaderColumn(selectionRowHeaderDef);
395401
}
396402
},
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<div>
2+
<div class="ui-grid-vertical-bar">&nbsp;</div>
3+
<div class="ui-grid-cell-contents" col-index="renderIndex"></div>
4+
</div>

0 commit comments

Comments
 (0)