Page 1 of 1

Margins not respected graph container is a certain size

Posted: Wed Jun 11, 2014 8:10 pm
by greggorob64
In the screenshots below, i set the left margin from 0 to 285. When the container is small, the margins aren't respected. When i make the container large before the margin change, it works just fine.

When i resize the window (via mouse) from big->small, or small->big, it doesn't modify the margins on the fly either. I'll attach

[*]small container before margin
[*]small container after margin
[*]big container before margin
[*]big container after margin.

What can i do to eliminate this discrepancy?

[*]Container is 660px. tile is small and margins set to 0. I will maximize this tile, and will set the margins to 285
Image

[*] Container maximized. The chart is NOT respecting my specified margin
Image

[*] Container 930px. Chart currently has 0 margins. I will maximize the tile and set it to 285 and it will be respected
Image

Image

Re: Margins not respected graph container is a certain size

Posted: Thu Jun 12, 2014 6:38 am
by ArctionTero
The size of container should have no effect on how the margins are used. ViewXY.AxisLayout.AutoAdjustMargins have strong influence.

We made a MDI test where margin was adjusted at double click and on window Resize events based on its size.

The margins were updated nicely.

Can you provide us a minimum sample application by which we could reproduce this?

Re: Margins not respected graph container is a certain size

Posted: Thu Jun 12, 2014 3:10 pm
by greggorob64
I have auto-adjust margins set to false.

It very much seems like there' a minimum chart area size relative to control width that's being forced on it. I'll try to take some time to generate a sample.