...
|
...
|
@@ -580,9 +580,7 @@ var ListView = React.createClass({ |
|
|
}
|
|
|
if (updatedFrames) {
|
|
|
updatedFrames.forEach((newFrame) => {
|
|
|
if (newFrame.x !== 0 || newFrame.y !== 0 || newFrame.width !== 0 || newFrame.height !== 0) {
|
|
|
this._childFrames[newFrame.index] = merge(newFrame);
|
|
|
}
|
|
|
this._childFrames[newFrame.index] = merge(newFrame);
|
|
|
});
|
|
|
}
|
|
|
var isVertical = !this.props.horizontal;
|
...
|
...
|
@@ -617,13 +615,13 @@ var ListView = React.createClass({ |
|
|
totalIndex++;
|
|
|
}
|
|
|
if (!frame) {
|
|
|
continue;
|
|
|
break;
|
|
|
}
|
|
|
var rowVisible = visibleSection[rowID];
|
|
|
var min = isVertical ? frame.y : frame.x;
|
|
|
var max = min + (isVertical ? frame.height : frame.width);
|
|
|
if ((!min && !max) || (min === max)) {
|
|
|
continue;
|
|
|
break;
|
|
|
}
|
|
|
if (min > visibleMax || max < visibleMin) {
|
|
|
if (rowVisible) {
|
...
|
...
|
|