mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-29 21:46:07 +08:00
logging to jsc heap capture expand contract
Reviewed By: bnham Differential Revision: D3757560 fbshipit-source-id: 00046797b17c9fa9e37dab597f11d9db7f7bd08a
This commit is contained in:
committed by
Facebook Github Bot
parent
e193aea2f4
commit
8af84c6788
@@ -103,6 +103,7 @@ newCursor-=row.height-1;
|
|||||||
}
|
}
|
||||||
this.state.aggrow.contract(row);
|
this.state.aggrow.contract(row);
|
||||||
this.setState({cursor:newCursor});
|
this.setState({cursor:newCursor});
|
||||||
|
console.log('-'+row.top);
|
||||||
}},{key:'_expandRow',value:function _expandRow(
|
}},{key:'_expandRow',value:function _expandRow(
|
||||||
|
|
||||||
row){
|
row){
|
||||||
@@ -112,6 +113,7 @@ if(newCursor>row.top){// below expanded section
|
|||||||
newCursor+=row.height-1;
|
newCursor+=row.height-1;
|
||||||
}
|
}
|
||||||
this.setState({cursor:newCursor});
|
this.setState({cursor:newCursor});
|
||||||
|
console.log('+'+row.top);
|
||||||
}},{key:'_keepCursorInViewport',value:function _keepCursorInViewport()
|
}},{key:'_keepCursorInViewport',value:function _keepCursorInViewport()
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -103,6 +103,7 @@ class Table extends React.Component { // eslint-disable-line no-unused-vars
|
|||||||
}
|
}
|
||||||
this.state.aggrow.contract(row);
|
this.state.aggrow.contract(row);
|
||||||
this.setState({cursor: newCursor});
|
this.setState({cursor: newCursor});
|
||||||
|
console.log('-' + row.top);
|
||||||
}
|
}
|
||||||
|
|
||||||
_expandRow(row) {
|
_expandRow(row) {
|
||||||
@@ -112,6 +113,7 @@ class Table extends React.Component { // eslint-disable-line no-unused-vars
|
|||||||
newCursor += row.height - 1;
|
newCursor += row.height - 1;
|
||||||
}
|
}
|
||||||
this.setState({cursor: newCursor});
|
this.setState({cursor: newCursor});
|
||||||
|
console.log('+' + row.top);
|
||||||
}
|
}
|
||||||
|
|
||||||
_scrollDiv: null;
|
_scrollDiv: null;
|
||||||
|
|||||||
Reference in New Issue
Block a user