admin
admin copied to clipboard
Sticky table headers broken in Firefox
Hello, I found that the QOR admin demo (and my app) suffer from cosmetic issues in any view that involves tables. I've tested this with Firefox 63 on Windows and macOS.
Steps to reproduce:
- Visit https://demo.getqor.com/admin/colors
- Ensure that the browser is smaller than the table, so that horizontal and vertical scrolling is enabled
- Scroll down. Bug: The sticky table header does not move when scrolling horizontally.
- Scroll back up. Bug: The original table header is not restored, instead the sticky header overlaps content.


The problem appears to be with qor-fixer.js.
@mologie Thank you for reporting this bug. I will check out this bug later.
Confirmed here in Firefox Beta 66.0b11 (64-bit)
@jasonweng Hello, do you have any updates how to fix this bug?
@jasonweng Hi, We have found the solution for this bug. Some styles for header should be rewritten like:
.qor-table thead {
position: static;
}
.qor-table-fixed-header > thead {
position: fixed;
}
Hi @Prots @eugeneradionov I will update the code later. Thanks for your help!
@Prots @eugeneradionov @mologie I've updated the code: https://github.com/qor/admin/commit/9032e7fec172c66d73512cc0a59c8ecdf3af1fcc