When interacting with input boxes in Ionic webview for Android, the entire section will shift upward

I am currently working with Ionic version 3.10 and have included the following login HTML code:

    <ion-content>
      <ion-grid>
        <ion-row>
          <ion-col col-12>
            <ion-list>
                <ion-card>
                    <ion-card-header>
                        <ion-img style="background-color: transparent; display: block; margin: auto;" height="100" width="100" src="assets/logo.png" alt="iBin"></ion-img>
                    </ion-card-header>
                    <ion-card-content>
                        <ion-item ion-fixed>
                            <ion-label floating>Username</ion-label>
                            <ion-input type="text"></ion-input>
                        </ion-item>
                        <ion-item ion-fixed>
                            <ion-label floating>Password</ion-label>
                            <ion-input type="password"></ion-input>
                        </ion-item>
                        <ion-item>
                            <!-- <button ion-button color="secondary" outline padding >Login</button> -->
                            <button ion-button color="secondary" outline padding block round (click)="login()">Login</button>
                        </ion-item>
                    </ion-card-content>

                </ion-card>
            </ion-list>
           </ion-col>
          </ion-row>
        </ion-grid>
    </ion-content>

The SCSS styling I applied is as follows:

page-home
        {
            ion-grid, ion-card-content
                {
                    min-height: 100%;
                }
        }

When testing this code using ionic serve -l, I encounter a rendering issue where the Android view causes the division to shift up when clicking on an input box. This behavior is not observed in the Windows or iOS views. I attempted to use ion-fixed on the ion-content, but it resulted in the UI shrinking to 50%. What could be causing this issue?

Answer №1

Give this a shot and provide feedback?

.html

<ion-content padding>
  <ion-grid>
    <ion-row>
      <ion-col col-12>
        <ion-list>
            <ion-card>
                <ion-item ion-fixed>
                    <ion-label floating>Username</ion-label>
                    <ion-input type="text"></ion-input>
                </ion-item>
                <ion-item ion-fixed>
                    <ion-label floating>Password</ion-label>
                    <ion-input type="password"></ion-input>
                </ion-item>
                <ion-item>
                    <!-- <button ion-button color="secondary" outline padding >Login</button> -->
                    <button ion-button color="secondary" outline padding block round (click)="login()">Login</button>
                </ion-item>
            </ion-card>
        </ion-list>
       </ion-col>
      </ion-row>
     </ion-grid>
    </ion-content>

.scss

 page-my {
    ion-grid {
            min-height: 100%;
        }
  }

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Utilizing Webpack and Typescript for an enhanced DataTables experience: A bespoke JQuery Plugin

I am currently facing an issue while trying to integrate the datatables JQuery plugin with webpack and typescript. While I have successfully set up JQuery with typings and intelliSense, the datatables integration seems to be causing issues. After building ...

Converting JSON to string in Typescript is causing an error where type string cannot be assigned to type '{ .. }'

Here's the code snippet I'm working with: interface ISource extends IdModel { source_type_id: number; network_id: number; company_connection_id: number; feed_id: number; connection_id: number; feed_ids: number[]; name: string; tag ...

Tips for successfully linking angular and NGINX Docker containers to Spring without encountering any CORS errors

Whenever I try to send a request to the server, I keep encountering a CORS error. Interestingly, curl requests from the frontend container to the server work perfectly fine when they are on the same network. Additionally, running the containers locally als ...

The modal is throwing an error because it is unable to split an undefined property

Displaying values in separate spans within a modal dialog, sourced from an object (e.g. skill1, skill2, skill3). All functionality is functioning correctly. But encountering an error message TypeError: Can not read property' split 'of undefined i ...

Trouble with passing query parameters in generateStaticParams | Nextjs version 14.2.17

There is a list of projects on the parent page, displayed using client-side rendering with useEffect. When a user clicks on a specific project, the following code snippet is executed: <Link key={index} prefetch={true} href={{ pathnam ...

Enhancing Material UI v4 Themes using TypeScript

I am attempting to implement my own custom palette option in the theme section, but I am struggling with how to do the augmentation part using TypeScript. So far, I have created a file named "material-ui.d.ts" and inside it, I only have: import { PaletteO ...

The custom Android InputManagerCompat.InputDeviceListener class is not receiving callbacks on any of its methods

I have developed an Android application that utilizes a class extending the specified type: @TargetApi(Build.VERSION_CODES.HONEYCOMB_MR1) public class GamePadController extends View implements InputManagerCompat.InputDeviceListener { // The current de ...

Is the return type of 'void' being overlooked in TypeScript - a solution to avoid unresolved promises?

When working in TypeScript 3.9.7, the compiler is not concerned with the following code: const someFn: () => void = () => 123; After stumbling upon this answer, it became apparent that this behavior is intentional. The rationale behind it makes sens ...

Can Angular apps be deployed onto the IBM Websphere Application Server?

At my workplace, we utilize IBM RAD for development and IBM Websphere Application Server as our web app server. Given these specific tools, I am curious about the feasibility of developing and deploying Angular SPAs. Perhaps integrating a Typescript plug ...

How to securely retrieve a document by integrating Angular 2 with a web API

I am currently working on an Angular 4 and web API application where I am attempting to download a file using Web API and TypeScript Blob. The code below showcases how this process is executed. However, upon trying to open the downloaded image, I encounter ...

Creating OpenAPI/Swagger documentation from TypeScript code

I am in search of a solution to automatically create OpenAPI/Swagger API definitions based on my Node.JS/Express.JS/Typescript code. It would be perfect if I could simply add annotations to my Express Typescript base controllers and have the OpenAPI/Swagg ...

What is the most effective method for accessing the sqlite database file across various devices?

Recently, I encountered an issue with my app where the filePath retrieved using Context.getDatabasePath(“dbname.db”).getPath() returns null on certain devices when trying to send the SQLite db file through email. I'm wondering if there are specif ...

Angular 5 Custom validators: Error message - 'passwordG' is not defined in ng

Currently working with Angular 5 and attempting to create custom validators for password inputs along with a confirmation password field. This is the HTML code : <div formGroupName = "passwordG"> <div class="form-group"> <label ...

I encountered an error message while running the Appium code mentioned below

An error occurred while running the main thread. The session was not found. Command duration exceeded timeout: 610 milliseconds. Additional information on the environment - version: '2.53.0', revision: '35ae25b', time: '2016-03-15 ...

What is the best way to use hasClass in a conditional statement to display text based on the content of a different div element?

Let's say we have the following HTML code: <div>New York</div> Now, we want to add another div like this: <div>Free Delivery</div> How can we achieve this using JavaScript? ...

You cannot use 'ReactPlayer' as a JSX element

I'm currently facing an issue with my React project where I am trying to integrate react-player. In my TypeScript setup, I encountered the following error during the build process: 'ReactPlayer' cannot be used as a JSX component. Its instan ...

angular table disabled based on condition

I have a table in my HTML file and I am trying to figure out how to disable the onClick function if the start date is greater than the current date. <ng-container matColumnDef="d"> <th mat-header-cell ...

"Unlock the power of remote-redux-devtools in NgRx: A step-by-step guide

Currently, I am utilizing NgRx in an Angular NativeScript project for Android and iOS apps, and it is proving to be quite effective. However, one aspect that concerns me is the inability to use @ngrx/store-devtools and the Redux DevTools Chrome extension d ...

The designation of 'Observable<Observable<Object[]>>' does not match the type of 'Observable<Object[]>'

I was previously working with Angular 2/4 without any issues. However, after upgrading to Angular 7, I started encountering this error consistently across my application. What could have caused this sudden problem? Type 'Observable<Observable<O ...

The execution of the command has encountered an issue - it was unsuccessful! The error message displayed is: spawn

I'm currently using a Mac and could use some help with my https://i.sstatic.net/IH1Pb.png Here's the content of my ~/.bash-profile export PATH=$PATH:/Users/xxxxx/Library/Android/sdk/platform-tools/ export ANDROID_HOME=/Users/xxxx/Library/Androi ...