fix clamping for infinite scrolling (refs #479)
This commit is contained in:
parent
26e4b12466
commit
8c5c4e494d
|
@ -116,6 +116,7 @@ function headlines_callback2(transport, offset, background, infscroll_req) {
|
||||||
$$("#headlines-tmp > div").each(function(row) {
|
$$("#headlines-tmp > div").each(function(row) {
|
||||||
if ($$("#headlines-frame DIV[id="+row.id+"]").length == 0) {
|
if ($$("#headlines-frame DIV[id="+row.id+"]").length == 0) {
|
||||||
row.style.display = 'none';
|
row.style.display = 'none';
|
||||||
|
|
||||||
c.domNode.appendChild(row);
|
c.domNode.appendChild(row);
|
||||||
} else {
|
} else {
|
||||||
row.parentNode.removeChild(row);
|
row.parentNode.removeChild(row);
|
||||||
|
@ -141,10 +142,10 @@ function headlines_callback2(transport, offset, background, infscroll_req) {
|
||||||
$$("#headlines-frame > div[id*=RROW]").each(
|
$$("#headlines-frame > div[id*=RROW]").each(
|
||||||
function(child) {
|
function(child) {
|
||||||
if (!Element.visible(child)) {
|
if (!Element.visible(child)) {
|
||||||
new Effect.Appear(child, { duration : 0.5 });
|
//new Effect.Appear(child, { duration : 0.5 });
|
||||||
|
Element.show(child);
|
||||||
|
|
||||||
cp = child.getElementsByClassName("contentPreview")[0];
|
cp = child.getElementsByClassName("contentPreview")[0];
|
||||||
|
|
||||||
clamp_element(cp, 50);
|
clamp_element(cp, 50);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue