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

ExcelFilter + Sorting + header text wrapper in any HTML element = wrong icons positions #339

Open
avasuro opened this issue Jun 5, 2020 · 1 comment

Comments

@avasuro
Copy link

avasuro commented Jun 5, 2020

Demo: https://snippet.webix.com/trmny4bq

Description: If some datatable header have content='ExcelFilter', some sorting assigned an header text wrapped in any HTML element - sorting icon is displaying above filter icon.

Expected behaviour: Sorting icon should be placed aside with filter icon, the same as it displayed if header text is not wrapped in any HTML element.

Bug reproduces in: IE, Firefox, Chrome

@avasuro
Copy link
Author

avasuro commented Jun 5, 2020

Possible solution

In current webix styles there is line like:

.webix_excel_filter + .webix_ss_sort_asc,
.webix_excel_filter + .webix_ss_sort_desc {
  right: 24px;
}

Just replace "+" to "~" to make this styles works fine:

.webix_excel_filter ~ .webix_ss_sort_asc,
.webix_excel_filter ~ .webix_ss_sort_desc {
  right: 24px;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant