Situation: I am facing an issue with my Ionic/Angular app. The screen layout, as shown in the image provided and on Stackblitz, includes two ion-grid
s with different background colors - green and red.
Goal: My goal is to assign a percentage height to each grid - for example, 70% to the green one and 30% to the red one. The content in the red grid should be scrollable to view all text without a global scrollbar appearing. Only the red area should have its own scrollbar.
https://i.sstatic.net/n6huC.png
What I have tried: I have experimented with various configurations of ion-row
and ion-col
, attempting to use properties such as position:fixed
or position:sticky
on the red grid. However, I am struggling to position the green grid below (vertically adjacent to) the red grid without overlapping it.
Stackblitz: https://stackblitz.com/edit/ionic-t8maqc
Any assistance on this matter would be greatly appreciated!