Native Mobile Tab container not displaying properly

0
Hi, I'm facing an issue, when I place a Tab container inside of a scroll view or a layout grid, it does not display.  It worked in Mendix 9.24.2 however since upgrading to 10.24.1 it has been an issue. Any suggestions?
asked
3 answers
2

Not really, we ended up mimicking the tab container using buttons and an enum attribute to keep track of the current 'tab'. That allowed for scrolling the entire page. With 10.24, you don't need a context attribute anymore, a page variable would work as well.

 

Edit: use an enum attribute or an enum page variable, the enum values are your tab names. Each button can have dynamic classes to make it appear as the selected item when the enum value matches.

Use containers with condition for visible on that enum to hide/show relevant content depending on which button is tapped. You can style the buttons to make them appear as tab headers if you want to, we styled them as transparent buttons when not selected, transparent button with only bottom border when selected

answered
0

This problem seems to be not only limitted to 10.24.1 but also exists in older versions.

 

https://community.mendix.com/link/space/studio-pro/questions/103423

 

As suggested in the above link, you may try removing the layout grid and use a container with size set to Maximum space.

answered
0

This was the response on our support ticket concerning the missing contents of the tabcontainer in a scrollcontainer:

 

Our RnD team found that this behavior due to a limitation of the new navigation system that we have since around 10.12+. More information can be found here: https://docs.mendix.com/refguide/tab-container/#usage-with-scroll-container .

Our RnD team has confirmed that there are no plans to change this functionality. It is currently viewed as a known limitation.

 

If you have any questions or concerns, please feel free to reach out.

 

Best Regards,

Refus Combs

Customer Support - Engineer

answered