UITabGroup titles are clipped

1 view (last 30 days)
Dominik Lechleitner
Dominik Lechleitner on 16 Sep 2022
I'm using the AppDesigner to build an app. I want to use an UITabGroup with tab location set to "left". However, if I use long tab titles in R2020a or later then they are clipped.
Here is an example with location "top" (all is fine):
Here is an example with location "left":
As can be seen, the long tab title is clipped. I haven't found a way to change this behavior. Interestingly, this does not happen with R2019a.
Does anybody know of a way to make the tab titles being displayed fully? I have attached the mlapp file I used to take the screenshots from above.
Any help would be appreciated!

Answers (2)

Eric Delgado
Eric Delgado on 23 Sep 2022
Hey @Dominik Lechleitner, it's not possible, but at the end of the day, why are you trying to do that? Let's do something more beautiful! Let's try a tab group controlled by a graphic menu... See code attached made on R2021b (if you are working on a different release of Matlab, you have to open App Designer and save the file before run it).

Dominik Lechleitner
Dominik Lechleitner on 26 Sep 2022
Hi Eric,
thanks for your answer! I also confirmed with Mathworks support that it is not possible to have tab location "left" or "right" without truncation of the tab titles (at least not after R2019). This is honestly quite disappointing. I also played around with toggle button groups and graphic menus like you suggested. However, this leads to problems with resizable apps and the z level of the UI elements. For now I want to keep it simple and I will just use a tab group with location "top". Maybe in the future I will try to make a robust implementation of your workaround. Thanks!


Find more on Maintain or Transition figure-Based Apps in Help Center and File Exchange




Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by