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

bug(Table): incorrect display of fixed table columns when visible false #3062

Closed
1 task done
Dimasikkk1 opened this issue Mar 13, 2024 · 6 comments · Fixed by #3066 or #3080
Closed
1 task done

bug(Table): incorrect display of fixed table columns when visible false #3062

Dimasikkk1 opened this issue Mar 13, 2024 · 6 comments · Fixed by #3066 or #3080
Assignees
Labels
bug Something isn't working
Milestone

Comments

@Dimasikkk1
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

I found that when you hide the first column of the table, then the remaining fixed columns are incorrectly displayed, somewhere in their place there is a void. Sometimes the last fixed column jumped to the zero place, and there was a void in its place, but I have not yet figured out how to reproduce this, just when hiding the first column.

image

Expected Behavior

Fixed columns in their places.

Steps To Reproduce

Test repo: https://github.com/Dimasikkk1/MP1TestRepo

Exceptions (if any)

No response

.NET Version

8.0.200-preview.23624.5

Anything else?

ASP.Net Core 8
Visual Studio Community 2022 17.9.0 Preview 4.0

ПАКЕТ SDK ДЛЯ .NET:
Version: 8.0.200-preview.23624.5
Commit: 8065b9770c
Workload version: 8.0.200-manifests.66f5ce51

Среда выполнения:
OS Name: Windows
OS Version: 10.0.22631
OS Platform: Windows
RID: win-x64
Base Path: C:\Program Files\dotnet\sdk\8.0.200-preview.23624.5\

Установленные рабочие нагрузки .NET:
Workload version: 8.0.200-manifests.66f5ce51
[maui-windows]
Источник установки: VS 17.9.34518.117
Версия манифеста: 8.0.3/8.0.100
Путь к манифесту: C:\Program Files\dotnet\sdk-manifests\8.0.100\microsoft.net.sdk.maui\8.0.3\WorkloadManifest.json
Тип установки: Msi

[ios]
Источник установки: VS 17.9.34518.117
Версия манифеста: 17.2.8004/8.0.100
Путь к манифесту: C:\Program Files\dotnet\sdk-manifests\8.0.100\microsoft.net.sdk.ios\17.2.8004\WorkloadManifest.json
Тип установки: Msi

[maccatalyst]
Источник установки: VS 17.9.34518.117
Версия манифеста: 17.2.8004/8.0.100
Путь к манифесту: C:\Program Files\dotnet\sdk-manifests\8.0.100\microsoft.net.sdk.maccatalyst\17.2.8004\WorkloadManifest.json
Тип установки: Msi

[android]
Источник установки: VS 17.9.34518.117
Версия манифеста: 34.0.52/8.0.100
Путь к манифесту: C:\Program Files\dotnet\sdk-manifests\8.0.100\microsoft.net.sdk.android\34.0.52\WorkloadManifest.json
Тип установки: Msi

Host:
Version: 8.0.0
Architecture: x64
Commit: 5535e31a71

.NET SDKs installed:
8.0.100-rc.1.23463.5 [C:\Program Files\dotnet\sdk]
8.0.200-preview.23624.5 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 3.1.32 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.8 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.25 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.14 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 8.0.0-rc.1.23421.29 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 8.0.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 3.1.32 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.8 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.25 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.14 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.0-rc.1.23419.4 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 3.1.32 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 6.0.8 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 6.0.25 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 7.0.14 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 8.0.0-rc.1.23420.5 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 8.0.0 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Other architectures found:
x86 [C:\Program Files (x86)\dotnet]
registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x86\InstallLocation]

Environment variables:
Not set

global.json file:
Not found

@Dimasikkk1 Dimasikkk1 added the bug Something isn't working label Mar 13, 2024
Copy link

bb-auto bot commented Mar 13, 2024

@Dimasikkk1 Thank you for filing this issue. In order for us to investigate this issue, please provide a minimalistic repro project that illustrates the problem.

@bb-auto bb-auto bot added this to the v8.3.0 milestone Mar 13, 2024
@ArgoZhang ArgoZhang changed the title bug(): Incorrect display of fixed table columns when visible false Incorrect display of fixed table columns when visible false Mar 13, 2024
@ArgoZhang
Copy link
Collaborator

@Dimasikkk1 thanks this is a bug. will be fixed in the next release

@ArgoZhang
Copy link
Collaborator

ArgoZhang commented Mar 15, 2024

@Dimasikkk1 fixed 8.3.4-beta03

image

update your stylesheet

ArgoZhang added a commit that referenced this issue Mar 15, 2024
…se (#3066)

* test: 更新单元测试

* doc: 更新 z-index 值

* chore: bump version 8.3.4-beta02

* fix: 兼容老模板

* fix(#3062): 修复计算固定列时未忽略隐藏列宽度问题

link #3062

* fix: 修复右侧固定列计算方法

* chore: bump version 8.3.4-bta03

* test: 更新单元测试

* test: 更新单元测试
@ArgoZhang ArgoZhang changed the title Incorrect display of fixed table columns when visible false bug(Table): incorrect display of fixed table columns when visible false Mar 15, 2024
@Dimasikkk1
Copy link
Author

Dimasikkk1 commented Mar 15, 2024

I updated the package to version 8.3.4-beta04, and when I hide the first two columns, there is a void in place of the first column. You can check on the same mini repository.

image

@Dimasikkk1
Copy link
Author

I have updated the package to version 8.3.4 and my test repository, which is listed above. If all columns visible is true, some is hidden anyway. This is also a problem when you hide some columns.

image

@ArgoZhang
Copy link
Collaborator

ArgoZhang commented Mar 17, 2024

@Dimasikkk1 hi. I think this is caused by inappropriate settings. Not all columns can be fixed, as that would be meaningless. If the last column is not a fixed column, then the preceding column cannot be fixed either. Currently, this is by design.

the below code will be work fine.

<TableColumn @bind-Field="context.Column1" Fixed="true" Width="160" />
<TableColumn @bind-Field="context.Column2" Fixed="true" Width="160" />
<TableColumn @bind-Field="context.Column3" Fixed="true" Width="160" />
<TableColumn @bind-Field="context.Column4" Fixed="false" Width="160" />
<TableColumn @bind-Field="context.Column5" Fixed="false" Width="160" />
<TableColumn @bind-Field="context.Column6" Fixed="false" Width="160" />
<TableColumn @bind-Field="context.Column7" Fixed="false" Width="160" />
<TableColumn @bind-Field="context.Column8" Fixed="true" Width="160" />
<TableColumn @bind-Field="context.Column9" Fixed="true" Width="160" />

@ArgoZhang ArgoZhang reopened this Mar 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants