Giter Site home page Giter Site logo

Comments (8)

jcesarmobile avatar jcesarmobile commented on April 28, 2024 8

At the moment, if you don't want to resize the webview, you can add android:windowSoftInputMode="adjustPan" to your activity in the AndroidManifest.xml

I've been looking into it and seems possible from code to, so should be implemented

from capacitor-plugins.

shayanaijaz avatar shayanaijaz commented on April 28, 2024 8

Is there a solution for this yet? I can do android:windowSoftInputMode="adjustPan" but then I am not able to scroll on the page which is a functionality I need

from capacitor-plugins.

MarcosBeGo avatar MarcosBeGo commented on April 28, 2024 5

Is there a solution for this yet? I can do android:windowSoftInputMode="adjustPan" but then I am not able to scroll on the page which is a functionality I need

+1

from capacitor-plugins.

piotrblasiak avatar piotrblasiak commented on April 28, 2024

At the moment, if you don't want to resize the webview, you can add android:windowSoftInputMode="adjustPan" to your activity in the AndroidManifest.xml

I've been looking into it and seems possible from code to, so should be implemented

Is this confirmed? I tried it and it does not seem to make any difference - the webview is still resized.

from capacitor-plugins.

jcesarmobile avatar jcesarmobile commented on April 28, 2024

I tested with this code
Capacitor.Plugins.Keyboard.addListener("keyboardDidShow", () => console.log('keyboardDidShow', window.innerWidth, window.innerHeight)); and the height didn't change after adding that line, so I think it works, but you can share your testing too

from capacitor-plugins.

piotrblasiak avatar piotrblasiak commented on April 28, 2024

Ok, the fault was that I put it on <application> instead of <activity>. Sorry for the late reply and thanks!

from capacitor-plugins.

jcesarmobile avatar jcesarmobile commented on April 28, 2024

Reopening as seem possible with code too, so should be implemented

from capacitor-plugins.

roxteddy avatar roxteddy commented on April 28, 2024

Hi

According this (https://stackoverflow.com/questions/46751925/how-to-set-windowsoftinputmode-programmatically-from-fragments), it is indeed possible to change it programmatically.

However, to be fully useful, it would be great if the webview could be moved on top on the keyboard -so the upper part is outside the top border of the viewport- and we could scroll the whole webview, not only the ion-content part.

from capacitor-plugins.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.