01-30-2013 11:43 PM - edited 01-30-2013 11:56 PM
Just wondering, does ActivityIndicator have preset size like they do in bbui.js?
I can't find any documentation on this so I have tested and found the max size to be 200px in width and height and if the size is increased any more, it just adds padding to the control.
Can someone help me please
Edit: 184px is the minimum for the large ActivityIndicator and there is a steep drop off from 183px
Solved! Go to Solution.
01-30-2013 11:55 PM
ActivityIndicator always has one of three preset sizes (whichever is the largest that will fit in it's given space). If you need a larger one, you may want to try scalling the container...
01-30-2013 11:57 PM
How do I force large preset size?
01-31-2013 12:13 AM
Just give the ActivityIndicator a large enough preferredHeight and Width. My code is...
ActivityIndicator
{
id: loader
preferredHeight: 500
preferredWidth: 500
verticalAlignment: VerticalAlignment.Center
horizontalAlignment: HorizontalAlignment.Center
}
(although a size of 200 would probably be sufficient).
01-31-2013 12:34 AM
The code you provided works fine for most cases but I find that if you are adding a label above or below the ActivityIndicator to describe event (i.e. "Loading Contacts"), providing 500px will add considerable amount of gap between the two controls. Ofcourse, you can decrease the preferredHeight and width but that's not a clean way to layout the two controls.
I just thought there would be a way to provide the size of the ActivityIndicator just like how we provide text sizes but I guess there isn't a way. Perhaps I should've been more clear on my initial question
Currently, a large ActivityIndicator is 184px height and width if anyone is interested. I don't like hardcoding dimensions but we have no choice and I don't have time to find out dimensions for medium or small ActivityMonitor