NDrawingView Fit Not Accounting for Stroke Width?

Print Topic | Close Window

By Jason Irby - 2 Years Ago
We have an app where the user can place shapes on a drawing and the requirement is that after modification we call a "Fit" so the document is sized just to fit the contents with a small specified margin. Like:

However, we also allow them to alter the shapes stroke width to any arbitrary value.  When we do, the NDrawingView Fit fails to account for that stroke thickness and the result is bleed off the view.  For requirements reasons that is a problem.  Like:


When selected, it can be seen that is is sizing to the path but not accounting for the stroke:


Assuming I can't just use more margin just in case, is there a way to tell Fit to take stroke into account?

We are still on version  

Thanks in advance,