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

Content has multiple inner Divs with their own dynamic width #93

Open
agilist-github opened this issue Dec 31, 2016 · 0 comments
Open

Comments

@agilist-github
Copy link

I have to fill up the contents dynamically with ajax so I changed it a little bit like below. Actually this is a chart which I want to auto scroll.
ScrollingChart_Marquee.pdf

$('.scroll-x').bind('finished', function () {
$(this).marquee('destroy');
}).marquee({
duration: 30000,
gap: 10,
delayBeforeStart: 1000,
//duplicated: true,
startVisible: true,
direction: "left",

            pauseOnHover: true,
            pauseOnCycle: true
        });

And start working when the content is loaded fully.
Next I am facing that inner divs get a width setting as style="width:100000px" which disturbs the whole inner content. Then I used the following code which gets my chart divs proper.
var myElements = document.querySelectorAll(".scroll-x");
for (var i = 0; i < myElements.length; i++) {
myElements[i].children[0].style.removeProperty('width');
}
But the problem comes when the scroll is reaching to end, it does not rotate the content but stretch the content and right portion gets stucked to right side only.

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

No branches or pull requests

1 participant