Authored by 盖剑秋

Fix UI bugs. reviewed by redding.

@@ -309,6 +309,11 @@ export default function community(platform) { @@ -309,6 +309,11 @@ export default function community(platform) {
309 getSceneStyle={(props) => { 309 getSceneStyle={(props) => {
310 return this.navPushStyle(props); 310 return this.navPushStyle(props);
311 }} 311 }}
  312 + onBack={(navigationState) => {
  313 + let dismissKeyboard = require('dismissKeyboard');
  314 + dismissKeyboard();
  315 + Actions.pop();
  316 + }}
312 /> 317 />
313 318
314 <Scene 319 <Scene
@@ -79,8 +79,10 @@ export default class SubjectPost extends Component { @@ -79,8 +79,10 @@ export default class SubjectPost extends Component {
79 if (this.boardInView) { 79 if (this.boardInView) {
80 return; 80 return;
81 } 81 }
82 -  
83 let kbdHeight = height - event.endCoordinates.screenY; 82 let kbdHeight = height - event.endCoordinates.screenY;
  83 + if (kbdHeight == 0) {
  84 + this.setState({replyState: ReplyState.replyNone});
  85 + }
84 this.boardHeight = kbdHeight>0?kbdHeight:250; 86 this.boardHeight = kbdHeight>0?kbdHeight:250;
85 this.boardSelectionHeight=kbdHeight; 87 this.boardSelectionHeight=kbdHeight;
86 let targetHeight = height-navbarHeight-0.5- kbdHeight; 88 let targetHeight = height-navbarHeight-0.5- kbdHeight;
@@ -602,7 +604,7 @@ const styles = StyleSheet.create({ @@ -602,7 +604,7 @@ const styles = StyleSheet.create({
602 flex: 1, 604 flex: 1,
603 paddingLeft: 10, 605 paddingLeft: 10,
604 paddingRight: 10, 606 paddingRight: 10,
605 - paddingTop: 9, 607 + paddingTop: 3,
606 paddingBottom: 9, 608 paddingBottom: 9,
607 color: 'black', 609 color: 'black',
608 height: 33, 610 height: 33,