Skip to content

Conditionally set the CSS "top" property.#144

Open
Kravimir wants to merge 1 commit into
jmosbech:masterfrom
Kravimir:master
Open

Conditionally set the CSS "top" property.#144
Kravimir wants to merge 1 commit into
jmosbech:masterfrom
Kravimir:master

Conversation

@Kravimir

Copy link
Copy Markdown

The "top" property was being reset to 0 for the ".tableFloatingHeaderOriginal" element so many of the times that toggleHeaders() was called and then being set again via setPositionValues(). Now the element doesn't "jump" unexpectedly.

The "top" property was being reset to 0 for the ".tableFloatingHeaderOriginal" element so many of the times that toggleHeaders() was called and then being set again via setPositionValues(). Now the element doesn't "jump" unexpectedly.
'z-index': base.options.zIndex
});
};
if(base.$originalHeader.get(0).styles.top=='')

@kliput kliput May 29, 2018

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

HTMLElement has no styles property:
https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement - instead style should be used.
Did you managed to get this work on some browser? For me, on Chromium it doesn't work.

Edit: Tested changing to style and it works perfectly.

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

Successfully merging this pull request may close these issues.

2 participants