Fix UI bug on post detail. reviewed by redding.
Showing
1 changed file
with
4 additions
and
2 deletions
@@ -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 | } |
-
Please register or login to post a comment