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

Fix(MWPW-164736):Table header cell height fix. #3429

Merged
merged 14 commits into from
Jan 9, 2025
3 changes: 2 additions & 1 deletion libs/blocks/table/table.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function defineDeviceByScreenSize() {
return 'TABLET';
}

function isStickyHeader(el) {
export function isStickyHeader(el) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why the export, is it used anywhere outside of this function?

return el.classList.contains('sticky')
|| (el.classList.contains('sticky-desktop-up') && defineDeviceByScreenSize() === 'DESKTOP')
|| (el.classList.contains('sticky-tablet-up') && defineDeviceByScreenSize() !== 'MOBILE' && !isMobileLandscape());
Expand Down Expand Up @@ -150,6 +150,7 @@ function handleAddOnContent(table) {
});
});
setTimeout(() => handleEqualHeight(table, '.row-heading'), 0);
table.addEventListener('mas:resolved', debounce(() => { handleEqualHeight(table, '.row-heading'); }));
sharath-kannan marked this conversation as resolved.
Show resolved Hide resolved
}

function handleHighlight(table) {
Expand Down
Loading