Margin for diagram?

2 posts, 0 answers
  1. Kristoffer
    Kristoffer avatar
    158 posts
    Member since:
    Dec 2012

    Posted 10 Apr 2013 Link to this post

    I manage to place my diagram on the edge of the view when zooming in and out a couple of times, moving the mouse at the same time (obviously changing the center point). I want my diagram nodes to never touch the edge of the view. How can I achieve this?

    Please note that setting the diagram's Margin does not help.
  2. Hristo
    Hristo avatar
    352 posts

    Posted 15 Apr 2013 Link to this post


    I am a bit confused about whether you need the shapes to be always in the view-port, or you just want to have a visual distance (let say about 5 px) between the shapes and diagram border?

    If you just need a padding, you could remove the diagram border and place the whole diagram inside a border element. Then apply the necessary margin to the diagram.

    If you want all shapes to be always in the view-port you will have to restrict the view-port (Position and Zoom properties) when panning and zooming.

    Could you please elaborate a bit more on your scenario if the provided information does not help you?

    Kind regards,
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
Back to Top