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

Updating the innerHTML of the 'preview-coverflow' erases the reflections of the covers #14

Open
drewpotter opened this issue Jan 21, 2015 · 6 comments
Assignees

Comments

@drewpotter
Copy link

.

@drewpotter
Copy link
Author

The covers lose their reflections when I update the innerHTML of the 'preview-coverflow'. I wonder if there is any way around this?

@drewpotter drewpotter changed the title refresh method erases the reflections Updating the innerHTML of the 'preview-coverflow' erases the reflections of the covers Jan 21, 2015
@drewpotter
Copy link
Author

I have disabled the reflections for now due to this error.

@vanderlee
Copy link
Owner

The reflection is rendered by a third party plug-in, so integration may not be perfect.
Do you have a jsfiddle (or similar) to demonstrate the problem and give me a target to aim for?

@drewpotter
Copy link
Author

The offending code, which breaks reflection is pasted below, basically I simply modify innerHTML of the preview-coverflow:

function receivedMessage(message)
{
var obj = JSON.parse(message);
if(obj.type == "context"){
var globalFeed = document.getElementById("preview-coverflow");
globalFeed.innerHTML = globalFeed.innerHTML + ''
$('#preview-coverflow').coverflow('refresh');
}
}

@drewpotter
Copy link
Author

globalFeed.innerHTML = globalFeed.innerHTML + 'such-and-such'

breaks reflection.

@drewpotter
Copy link
Author

Sorry accidently clicked close by mistake...

@vanderlee vanderlee self-assigned this May 30, 2015
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

2 participants