Skip to content

Commit 0aa854e

Browse files
committed
fix(igxGrid): Fix default scrollbars not showing on Mac when visible only on scroll. #7469
1 parent 4ebb781 commit 0aa854e

File tree

5 files changed

+4
-5
lines changed

5 files changed

+4
-5
lines changed

projects/igniteui-angular/src/lib/core/styles/components/grid/_grid-theme.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -957,7 +957,6 @@
957957
width: 100%;
958958
background: --var($theme, 'header-background');
959959
z-index: 10001;
960-
overflow: hidden;
961960
}
962961

963962
%grid-thead-thumb {

projects/igniteui-angular/src/lib/directives/for-of/virtual.helper.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export class VirtualHelperComponent extends VirtualHelperBaseDirective implement
4040
document.body.appendChild(div);
4141
const scrollWidth = div.offsetWidth - div.clientWidth;
4242
document.body.removeChild(div);
43-
return scrollWidth ? scrollWidth + 1 : 0;
43+
return scrollWidth ? scrollWidth + 1 : 1;
4444
}
4545

4646
}

projects/igniteui-angular/src/lib/grids/grid/grid.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@
222222
[style.width.px]="scrollWidth"></div>
223223
</div>
224224

225-
<div class="igx-grid__scroll" #scr [hidden]="isHorizontalScrollHidden">
225+
<div class="igx-grid__scroll" [style.height.px]="scrollWidth" #scr [hidden]="isHorizontalScrollHidden">
226226
<div class="igx-grid__scroll-start" [style.width.px]='isPinningToStart ? pinnedWidth : headerFeaturesWidth' [style.min-width.px]='isPinningToStart ? pinnedWidth : headerFeaturesWidth'></div>
227227
<div class="igx-grid__scroll-main" [style.width.px]='unpinnedWidth'>
228228
<ng-template igxGridFor [igxGridForOf]='[]' #scrollContainer>

projects/igniteui-angular/src/lib/grids/hierarchical-grid/hierarchical-grid.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@
181181
[style.width.px]="scrollWidth"></div>
182182
</div>
183183

184-
<div class="igx-grid__scroll" #scr [hidden]="isHorizontalScrollHidden">
184+
<div class="igx-grid__scroll" [style.height.px]="scrollWidth" #scr [hidden]="isHorizontalScrollHidden">
185185
<div class="igx-grid__scroll-start" [style.width.px]='isPinningToStart ? pinnedWidth : headerFeaturesWidth' [style.min-width.px]='isPinningToStart ? pinnedWidth : headerFeaturesWidth'></div>
186186
<div class="igx-grid__scroll-main" [style.width.px]='unpinnedWidth'>
187187
<ng-template igxGridFor [igxGridForOf]='[]' #scrollContainer>

projects/igniteui-angular/src/lib/grids/tree-grid/tree-grid.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@
155155
[style.width.px]="scrollWidth"></div>
156156
</div>
157157

158-
<div class="igx-grid__scroll" #scr [hidden]="isHorizontalScrollHidden">
158+
<div class="igx-grid__scroll" [style.height.px]="scrollWidth" #scr [hidden]="isHorizontalScrollHidden">
159159
<div class="igx-grid__scroll-start" [style.width.px]='isPinningToStart ? pinnedWidth : headerFeaturesWidth' [style.min-width.px]='isPinningToStart ? pinnedWidth : headerFeaturesWidth'></div>
160160
<div class="igx-grid__scroll-main" [style.width.px]='unpinnedWidth'>
161161
<ng-template igxGridFor [igxGridForOf]='[]' #scrollContainer>

0 commit comments

Comments
 (0)