Nativescript IQKeyboardManager 在底部使用 TextView 打破了布局
Nativescript IQKeyboardManager breaks layout with TextView at the Bottom
我在 iOS 中遇到 nativescript-IQKeyboardManager 插件的问题(android 工作正常),尝试了不同的方法来更改布局,但似乎没有任何效果。非常感谢任何帮助!
我尝试了不同的布局(Stacklayout,用 ScrollView 包装),但没能按预期工作。
模板如下(使用 nativescript-vue):
<template>
<Page class="page">
<GridLayout rows="auto, *, auto" class="m-y-10 m-x-10" height="100%">
<GridLayout row="0" columns="*, auto">
<Label col="0" class="h3 heading" textWrap="true" :text="'XXXX" fontWeight="bold"></Label>
<Label col="1" class="p-t-5" text="Close" @tap="onCancelTap" />
</GridLayout>
<ListView row="1" for="msg in messages" ref="listView" @itemLoading="onItemLoading">
<v-template>
<GridLayout columns="*" rows="auto, auto" class="msg p-10">
.....
</GridLayout>
</v-template>
</ListView>
<StackLayout row="2">
<GridLayout columns="*, auto" class="m-10 form">
<TextField class="text-input p-x-5" col="0" v-model="message" />
<Button class="btn-primary p-10 m-x-10" col="1" text="Enviar" @tap="chat(message)"></Button>
</GridLayout>
</StackLayout>
</GridLayout>
</Page>
</template>
仅当在布局中使用具有 ListView 的模式内的表单时才会出现此问题。在 https://github.com/tjvantoll/nativescript-IQKeyboardManager/issues/42
处有一个插件的公开票
我在 iOS 中遇到 nativescript-IQKeyboardManager 插件的问题(android 工作正常),尝试了不同的方法来更改布局,但似乎没有任何效果。非常感谢任何帮助!
我尝试了不同的布局(Stacklayout,用 ScrollView 包装),但没能按预期工作。
模板如下(使用 nativescript-vue):
<template>
<Page class="page">
<GridLayout rows="auto, *, auto" class="m-y-10 m-x-10" height="100%">
<GridLayout row="0" columns="*, auto">
<Label col="0" class="h3 heading" textWrap="true" :text="'XXXX" fontWeight="bold"></Label>
<Label col="1" class="p-t-5" text="Close" @tap="onCancelTap" />
</GridLayout>
<ListView row="1" for="msg in messages" ref="listView" @itemLoading="onItemLoading">
<v-template>
<GridLayout columns="*" rows="auto, auto" class="msg p-10">
.....
</GridLayout>
</v-template>
</ListView>
<StackLayout row="2">
<GridLayout columns="*, auto" class="m-10 form">
<TextField class="text-input p-x-5" col="0" v-model="message" />
<Button class="btn-primary p-10 m-x-10" col="1" text="Enviar" @tap="chat(message)"></Button>
</GridLayout>
</StackLayout>
</GridLayout>
</Page>
</template>
仅当在布局中使用具有 ListView 的模式内的表单时才会出现此问题。在 https://github.com/tjvantoll/nativescript-IQKeyboardManager/issues/42
处有一个插件的公开票