I am using the slimScroll plugin for jQuery by Piotr Rochala Which is a great plugin for nice scrollbars on most browsers but I am stuck because I am using it for a chat box and whenever the user appends new text to the boxit does scroll using the .scrollTop() method however the plugin's scrollbar doesnt scroll with it and when the user wants to look though the chat history it will start scrolling from near the top. I have made a quick demo of my situation http://jsfiddle.net/DY9CT/2/ Does anyone know how to solve this problem?
Cisco Certified Network Associate Exam,640-802 CCNA All Answers ~100/100. Daily update
the helper is only for visuals.
ReplyDeleteif you want to clone the image and drop it .. try something like that:
$("#table4").droppable({
accept: "#page",
tolerance: "touch",
drop: function (event, ui) {
ui.draggable.clone().appendTo(this);
}
});
I think this resolves your issue: Jquery: draggable clone.
ReplyDeletePs.: A simple search was enough to find this.