pagingcontrol icon indicating copy to clipboard operation
pagingcontrol copied to clipboard

set width for each tab

Open pakoArtal opened this issue 10 years ago • 3 comments

Hi Manuel, It would be great if we could set the width for each tab. This would be very useful if we had labels with very different widths as in Google Play

pakoArtal avatar Jun 08 '15 11:06 pakoArtal

I know what you mean. This would be awesome indeed. And it should be possible. I only need more spare time ;)

manumaticx avatar Jun 08 '15 12:06 manumaticx

In init function from tabs.js I tried

$.tabWidth = Ti.UI.SIZE;

Tabs look better but I have no idea yet how to change the indicator width and location

pakoArtal avatar Jun 08 '15 15:06 pakoArtal

The indicator is not intented to change its width. Right now, the widget assumes every tab has the same width. So we would need a dynamic width that applies while scrolling. The tab positions changes too what makes it a little tricky. But it's simple mathematics. I'll have a look asap.

manumaticx avatar Jun 08 '15 16:06 manumaticx