-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
column header misalignment with body in version 11.1.2 ( same code works in 11.0.4 ) #1145
Comments
This might not be related but I am facing the same issue on version 9.3.1. It happens only when the table is inside |
As a matter of fact I am within a mat-tab too.. This works fine on version 11.0.4, but not on 11.1.2. |
@darkurse any luck with a solution? |
No, I was actually waiting for a suggestion from @amcdnl . I kind of suspect the Now I actually face a new issue with the |
@darkurse I am curious if you got it working. Flex doesnt work in my case. Only thing that works for me is creating "custom" tabs with ngIf. |
@realshadow , no dice. Not working well. Seems like |
I see this issue every time when the |
I have the same issue when I add a new column to the existing table. After I scroll left or down the columns align to the correct location. |
I was just able to fix this by setting the width, minWidth and maxWidth to the same value. |
That's interesting. I'm curious to know what the contributors say about it. Do you think this would also fix the frozenLeft, frozenRight issues ? |
@darkurse I try adding the frozenLeft or frozenRight to my code and that does not fixes it. I still see all the other columns on top of the frozenLeft or frozenRight columns. |
@amcdnl, could you make a new release ? It's been a long time and lots of PR have been made since then. |
@amcdnl, could you please make a new release ? Showing the datatable to customers with these horrible collapsed column headers is terrible !! I've sent you a private message 2 weeks ago regarding this and the above message. I don't want to be a pain in the neck, but a simple yay or nay answer would be welcome ! Thank you |
Released 11.2.0 |
Still not working in 11.2.0 |
Its not the same issue, this happens when I add and remove columns to my
table.
Here you can see that the columns do not line up.
![capture2](https://user-images.githubusercontent.com/5282211/36864367-7b4c8de4-1d5a-11e8-814e-a9d7747cfe9d.PNG)
Here is the table in the original state before I add the new columns.
![capture](https://user-images.githubusercontent.com/5282211/36864404-9a54592e-1d5a-11e8-91bd-526429c209fd.PNG)
But when I scroll to the left all the columns line up correctly.
Thanks
…On Thu, Mar 1, 2018 at 1:08 PM, Stewart Rand ***@***.***> wrote:
Is this the same issue, or different? If it's different, I will log a new
issue.
[image: screencastgif]
<https://user-images.githubusercontent.com/6986171/36861325-f063cc92-1d59-11e8-9381-ddb50d6f0f5e.gif>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1145 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFCZo6b2JpBZw8UxDNaJNIAVrL0fp6ezks5taDkDgaJpZM4QnM3u>
.
|
@enniob Can't see your images |
@stewx just uploaded the image, I had replies to the email and it didn't attached it. |
I get the same issue also when I change the display columns but if I have a scroll and scroll left it goes away. So looks like it is an issue with table refresh or columns recalculation. |
@pedrocleto is there a way to force a refresh? I'm calling |
In my case I was using the columns array to drive the datatable. I simply moved the initialization of the columns array to after the rows array was populated, and it started working correctly. |
For anyone still encountering this issue of misaligned headers to data rows at init: In my scenario I was using angular flex layout library with property 'fxFlex="100"' assigned to the component. This got fixed by simply moving the 'fxFlex' property on a wrapper . Doesn't seem to play nicely with angular flex.
Hope this helps. |
I'm submitting a ... (check one with "x")
Current behavior
With the same typescript code on my side, I have a different rendering depending on ngx-datatable version I use :
This is what I have with ngx-datatable version 11.0.4
and with version 11.1.2
Expected behavior
Same rendering regardless of version
Reproduction of the problem
my-list component :
html
typescript
Consuming my-list component :
html
typescript
Please tell us about your environment:
windows 10 pro, vs code, npm, node
11.0.4 vs 11.1.2
5.0.2
Chrome
typescript 2.6.1
The text was updated successfully, but these errors were encountered: