-
Notifications
You must be signed in to change notification settings - Fork 39
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
Coverflow error "offsetWidth" happens with less then 8 images. #45
Comments
ghost
changed the title
Coverflow Error with Async
Coverflow error "offsetWidth" when using less then 8 images.
Mar 1, 2019
ghost
changed the title
Coverflow error "offsetWidth" when using less then 8 images.
Coverflow error "offsetWidth" happens with less then 8 images.
Mar 1, 2019
Which version of jquery and jquery-ui are you using?
Op vr 1 mrt. 2019 10:28 schreef Stephanie <[email protected]>:
… i tried acuple times to add coverflow but i get an error every time i try
with async data.
jquery-coverflow.js:278 Uncaught TypeError: Cannot read property 'offsetWidth' of undefined
at t.(anonymous function).(anonymous function)._frame (file:///C:/DEV/WIP/HTML5/Components/coverflow-master-reflection/scripts/jquery-coverflow.js:278:83)
at t.(anonymous function).(anonymous function)._frame (https://code.jquery.com/ui/1.12.1/jquery-ui.min.js:6:4499)
at t.(anonymous function).(anonymous function)._setIndex (file:///C:/DEV/WIP/HTML5/Components/coverflow-master-reflection/scripts/jquery-coverflow.js:235:10)
at t.(anonymous function).(anonymous function)._setIndex (https://code.jquery.com/ui/1.12.1/jquery-ui.min.js:6:4499)
at t.(anonymous function).(anonymous function)._create (file:///C:/DEV/WIP/HTML5/Components/coverflow-master-reflection/scripts/jquery-coverflow.js:194:9)
at t.(anonymous function).(anonymous function)._create (https://code.jquery.com/ui/1.12.1/jquery-ui.min.js:6:4499)
at t.(anonymous function).(anonymous function)._createWidget (https://code.jquery.com/ui/1.12.1/jquery-ui.min.js:6:6645)
at new t.(anonymous function).(anonymous function) (https://code.jquery.com/ui/1.12.1/jquery-ui.min.js:6:4063)
at HTMLDivElement.<anonymous> (jquery-ui.min.js:6)
at Function.each (jquery-2.2.4.min.js:2)
Any idea what is happening? I even try loading the script directly after
adding the images.
for (let index = 0; index < data.length; index++) {
$('#preview-coverflow').append("<img class='cover' src='" + data[index] + "' />");
if (data.length - 1 === index) {
loadScript("scripts/jquery-coverflow.js", createCoverflow);
}
}
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#45>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAnoGDGApq_wquSqJgmfuGqf_fd_fZOzks5vSPK-gaJpZM4bYm6S>
.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'll keep posted here.
Scenario: Use coverflow with less then 8 images result in this error. How can we bypass it ?
For rendering server images atm we can use a loadScript to start coverflow at right time. Looking for ways to bypass that too.
The text was updated successfully, but these errors were encountered: