javascript - dynamically created flowplayer scrollable addItem scrolls out of the container -
i creating horizontal scrollable list editable. size of container of list dynamic based on width of visible area of browser. when have list of items has filled screen, , add new item, container scrolls way past newly added element, blank screen. if scroll using "prev" button, see it. i've attached code used dynamically add new item.
i tried use .move , .seekto functions correct location, "prev" button gets randomly disabled can't scroll back.
any pointers anyone?
var speed = 200; var parent = $("#main-container").data("scrollable"); parent.end(speed); var clone = $("#thumbnail-clone").clone(true, true); var input = clone.find(".text-input"); clone.attr("id", newid); parent.additem(clone); input.show(); clone.show(); input.focus();
Comments
Post a Comment