@@ -231,7 +231,8 @@ export default class Chat extends Component {
231231 if ( this . state . inputLayoutHeight != size . height ) {
232232 this . setState ( {
233233 inputLayoutHeight : size . height ,
234- inputViewLayout : { width : size . width , height : size . height }
234+ inputViewLayout : { width : size . width , height : size . height } ,
235+ messageListLayout : { flex :1 , width : window . width , margin : 0 }
235236 } )
236237 }
237238 }
@@ -246,6 +247,9 @@ export default class Chat extends Component {
246247 resetMenu ( ) {
247248 if ( Platform . OS === "android" ) {
248249 this . refs [ "ChatInput" ] . showMenu ( false )
250+ this . setState ( {
251+ messageListLayout : { flex : 1 , width : window . width , margin : 0 } ,
252+ } )
249253 } else {
250254 this . setState ( {
251255 inputViewLayout : { width : window . width , height : 86 }
@@ -267,8 +271,7 @@ export default class Chat extends Component {
267271
268272 onTouchEditText = ( ) => {
269273 console . log ( "scroll to bottom" )
270- AuroraIController . scrollToBottom ( true ) ;
271- // this.refs["ChatInput"].showMenu(false)
274+ this . refs [ "ChatInput" ] . showMenu ( false )
272275 this . setState ( {
273276 inputViewLayout : { width : window . width , height : this . state . inputLayoutHeight }
274277 } )
@@ -347,6 +350,7 @@ export default class Chat extends Component {
347350 }
348351
349352 onTakePicture = ( mediaPath ) => {
353+ console . log ( "onTakePicture, path: " + mediaPath )
350354 var message = this . getNormalMessage ( )
351355 message . messageType = "image"
352356 message . path = mediaPath
@@ -536,7 +540,7 @@ export default class Chat extends Component {
536540 onTouchEditText = { this . onTouchEditText }
537541 onFullScreen = { this . onFullScreen }
538542 onRecoverScreen = { this . onRecoverScreen }
539- onSizeChanged = { this . onInputViewSizeChange }
543+ onSizeChange = { this . onInputViewSizeChange }
540544 />
541545 </ View >
542546 ) ;
0 commit comments