I am trying to implement a simple page with a login form (user/password text input + 1 button). I would like to fix the entire form block to the bottom of a ion-content. But it does not work.
I’m not very knowledgeable about css, but for some reason the position attribute being set to absolute prevents the map from rendering. Instead this was my solution, using margin-top:
I think that there is a solution to that problem, without having divs outside the ion-content and also be responsive. I’m using flexbox and different css base on the orientation.
In “Portrait” there are 2 divs. One occupies the top half of the screen and the other occupies the bottom half of the screen. If you want to make the top half larger then create a new class and put flex: 2 1 auto; (that will increase the
size of the top div)
In “landscape”, one div occupies the left half and the other occupies the right half.
I implemented a similar layout but I have issues when the keyboard shows up that hides the input textfield.
It happens that if I remove scroll=“false” from ion-content the content adjusts to focus the input field, but then my layout is not aligned bottom anymore.