<-- Back

Tab Container tab label is cut off when using a bold font weight in a Mendix 11 native application

Issue

After upgrading a native mobile app to Studio Pro v11.12.2, the Tab Container widget no longer has enough space to show the full label of the active tab when the font weight is customized.

The issue occurs when the font weight of the inactive tabs is set to font.weightNormal and the font weight of the active tab is set to font.weightBold in the custom-variables.js file. When the active tab label is rendered in bold, the text is cut off and the full label is not displayed. The same configuration works correctly in Mendix 10. 

Environment

Native Mobile

Studio Pro v11.12.6 and older

Studio Pro v11.16.1 and older

Cause

This is a known issue in the Tab Container widget for native mobile apps in Mendix 11. The tab label width does not adjust when the active tab uses a heavier font weight than the inactive tabs. As a result, the bold label of the active tab is truncated.

Solution/Workaround

The issue is fixed in Studio Pro v11.12.7 and v11.17.0. To resolve it, follow these steps:

  1. Upgrade the app to Studio Pro v11.12.7, v11.17.0, or a later version.
  2. Keep the custom font weight settings for the Tab Container in custom-variables.js. For example, use font.weightNormal for inactive tabs and font.weightBold for the active tab.
  3. Rebuild the native app and check that the full label of the active tab is displayed.

Internal information related

  • 286711
  • MOO-2473
  • C07BE6K6F5L/p1788250683856309

Additional information

Not Applicable.

Have more questions? Submit a request

0 Comments

Article is closed for comments.

To provide feedback, please open a ticket here. Don't forget to include the article's URL along with the feedback you would like to provide.