@atlaskit/editor-plugin-table
Version:
Table plugin for the @atlaskit/editor
10 lines • 391 B
JavaScript
import { TableCssClassName as ClassName } from '../types';
export const updateShadowListForStickyStyles = (heightStyle, shadows) => {
Array.from(shadows).forEach(shadow => {
if (shadow.classList.contains(ClassName.TABLE_STICKY_SHADOW)) {
if (shadow instanceof HTMLElement && shadow.style.height !== heightStyle) {
shadow.style.height = heightStyle;
}
}
});
};