Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

frozen right column header and data misalign #810

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions demo/basic/fullscreen.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ import { Component } from '@angular/core';
</a>
</small>
</h3>
<div style="padding: 20px; width: 100%; height: 100%;">
<ngx-datatable
class="material fullscreen"
style="top: 52px"
style="top: 52px;"
[columnMode]="'force'"
[headerHeight]="50"
[footerHeight]="0"
Expand All @@ -27,8 +28,9 @@ import { Component } from '@angular/core';
<ngx-datatable-column name="Gender"></ngx-datatable-column>
<ngx-datatable-column name="Age"></ngx-datatable-column>
<ngx-datatable-column name="City" [width]="300" prop="address.city"></ngx-datatable-column>
<ngx-datatable-column name="State" [width]="300" prop="address.state"></ngx-datatable-column>
<ngx-datatable-column name="State" [width]="300" prop="address.state" [frozenRight]="true"></ngx-datatable-column>
</ngx-datatable>
</div>
</div>
`
})
Expand Down
15 changes: 8 additions & 7 deletions demo/basic/scrolling.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,20 @@ import { Component } from '@angular/core';
</small>
</h3>
<ngx-datatable
class="material"
class="material striped"
[rows]="rows"
columnMode="force"
[headerHeight]="50"
[footerHeight]="0"
[rowHeight]="50"
[scrollbarV]="true"
[scrollbarH]="true">
<ngx-datatable-column name="Name" [width]="300"></ngx-datatable-column>
<ngx-datatable-column name="Gender"></ngx-datatable-column>
<ngx-datatable-column name="Age"></ngx-datatable-column>
<ngx-datatable-column name="City" [width]="300" prop="address.city"></ngx-datatable-column>
<ngx-datatable-column name="State" [width]="300" prop="address.state"></ngx-datatable-column>
[scrollbarH]="true"
>
<ngx-datatable-column name="Name" [width]="200" [frozenLeft]="true"></ngx-datatable-column>
<ngx-datatable-column name="Gender" [width]="300"></ngx-datatable-column>
<ngx-datatable-column name="Age" [width]="300"></ngx-datatable-column>
<ngx-datatable-column name="City" [width]="300" prop="address.city" [frozenRight]="true"></ngx-datatable-column>
<ngx-datatable-column name="State" [width]="200" prop="address.state"></ngx-datatable-column>
</ngx-datatable>
</div>
`
Expand Down
Loading