Authored by 盖剑秋

Fix UI bug on post detail. reviewed by redding.

@@ -84,14 +84,16 @@ export default class SubjectPost extends Component { @@ -84,14 +84,16 @@ export default class SubjectPost extends Component {
84 Keyboard.addListener('keyboardWillChangeFrame',(event)=>{ 84 Keyboard.addListener('keyboardWillChangeFrame',(event)=>{
85 85
86 let kbdHeight = height - event.endCoordinates.screenY; 86 let kbdHeight = height - event.endCoordinates.screenY;
  87 + if (kbdHeight>0) {
  88 + this.boardInView = false;
  89 + this.setState({imageState: 0});
  90 + } else {
87 if (this.boardInView) { 91 if (this.boardInView) {
88 if (kbdHeight>0) { 92 if (kbdHeight>0) {
89 this.setState({imageState: 0}); 93 this.setState({imageState: 0});
90 } 94 }
91 return; 95 return;
92 } 96 }
93 -  
94 - if (kbdHeight == 0) {  
95 this.currentReplyState = ReplyState.replyLZ; 97 this.currentReplyState = ReplyState.replyLZ;
96 this.setState({replyState: ReplyState.replyNone}); 98 this.setState({replyState: ReplyState.replyNone});
97 } 99 }