Hello,
I have a menu, I add items to this menu by parsing a xml file. I read height & width of the widgets form the xml & set them accordingly. I am having trouble with UIPanel clipRange.
When I add the items dynamically I need to adjust the baseClipRegion. Because of this, the UIPanel`s clipping center changes. I have set my menu such that only one item is visible at a time.
When I set the UIPanel.baseClipRegion, center changes & the widget gets clipped on either side. How do I calculate this?
Thanks,
Altaf