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

Remove overflow hidden, use width instead VC-983 #343

Merged
merged 3 commits into from
Jan 29, 2020

Conversation

konutis
Copy link
Contributor

@konutis konutis commented Jan 28, 2020

No description provided.

@pavelthq
Copy link
Contributor

note for github.

this should fix #269

element.parentElement.style.overflowX = 'hidden'
if (element) {
const currentStyleWidth = element.style.width;
const realWidth = element.getBoundingClientRect();
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe it's worth define realWidth variable already with the width property? That would make more sense.
Otherwise looks strange on the next line realWidth.width.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed.

if (element) {
const currentStyleWidth = element.style.width;
const realWidth = element.getBoundingClientRect();
element.style.width = (realWidth.width - 1) + 'px';
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe worth adding an explanatory comment why we subtract 1 from the realWidth.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

// Firefox horizontal scroll fix for left and right animations

there is already comment above

Copy link
Contributor

@nikitahl nikitahl left a comment

Choose a reason for hiding this comment

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

See comments in the code.

@nikitahl nikitahl merged commit 09c94ab into VisualComposer:master Jan 29, 2020
@nikitahl nikitahl mentioned this pull request Jan 29, 2020
@konutis konutis deleted the fix-animation-blink-VC-983 branch March 17, 2020 11:40
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.

3 participants