Skip to content

Covering text on IOS after key press #69

@RobCoco90

Description

@RobCoco90

This bug happen on nativescript-vue on IOS platform.

I got a GridLayout with a ScrollView taking the most of the screen with the chat and on the bottom the TextView for the message.

Simulator Screen Shot - iPhone 11 - 2019-11-19 at 17 09 17

When I tap the TextView I get the full view pushed up how it should be.

Simulator Screen Shot - iPhone 11 - 2019-11-19 at 17 09 26

But, when I press any key of the keyboard, the view stretch and get overlapped.

Simulator Screen Shot - iPhone 11 - 2019-11-19 at 17 09 32

<template>
  <Page class="page" @loaded="onLoaded">
    <CustomActionBar :title="title" icon="fa-chevron-left">
    </CustomActionBar>
    <PreviousNextView>
      <GridLayout rows="*, auto" cols="*">
        <ScrollView row="0" col="0" class="chat-box" ref="listView">
          <StackLayout class="chat-wrapper">
            <Message
              v-for="(message, index) in chat"
              :id="`msg-${message.id}`"
              :key="message.id"
              :ref="index"
              :message="message"
            />
          </StackLayout>
        </ScrollView>
        <GridLayout
          column="0" row="1"
          columns="*,auto" rows="*"
          class="send-message-container"
        >
            <TextView
              style="background-color: white; height: auto" borderBottomWidth="0"
              minHeight="40" hint="Type a message" row="0" col="0"
              v-model="message"
            ></TextView>
            <Label verticalAlignment="center" row="0" col="1" class="fa" fontSize="25" :text="'fa-paper-plane' | fonticon" @tap="sendMessage"/>
        </GridLayout>
      </GridLayout>
    </PreviousNextView>
  </Page>
</template>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions