Tab picker width adjustment

Hello,

I create Tabs with icons as follows:

Tab tTab1 = new Tab("Patient", "icons/patienttabimage.png");

My problem is, on module load, the tab picker (which displays the title of the tab) does not auto-adjust its WIDTH to accommodate the entirety of my tab title + icon, as shown in the attached “tabtitleproblem.png” image.

It is a minor thing but makes my UI look quite amateur. Is there a method to auto-adjsut the Tab header width so that my tab titles and icons can be displayed fully?

Thanks a lot,
Berkan

tabtitleproblem.png

Try setting the tab iconSize or iconWidth.

Thanks David, I tried but it does not work. When I specify setIconWidth/Size(), it actually changes the dimensions of my icon (which is not what I want) and does not help adjust the picker width…

This should be a very obvious issue, is there no solution to this?