This is a migrated thread and some comments may be shown as answers.

Problem with auto sizing

1 Answer 111 Views
Gauges
This is a migrated thread and some comments may be shown as answers.
Kate
Top achievements
Rank 1
Kate asked on 08 Apr 2010, 08:24 AM
I had a problem with  Gauge  auto sizing.
When I assign the RadGauge control of width and height in NaN (the minimal width and height equal 0, VerticalAlignment and HorizontalAlignment – Center), I receive a control of 100 x 100 no matter what container I have (Grid, StackPanel, Canvas), though I expected to see the control of 0x0 size.
Can you tell me, why it happens? How can I avoid such situation and make auto sizing work correctly?

1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 09 Apr 2010, 03:55 PM
Hello Kate,

This is actually the expected behavior. If you'd like to have gauge or scale object auto sized, then you must not to set Width and Height values at all. The containers which set size for the children (like Grid do) will set desired size automatically. If container does not set initial size for the children (like StackPanel or Canvas do) the default size for the gauge will be 100x100.

Greetings,
Andrey Murzov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Gauges
Asked by
Kate
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or