I’m making a drag and drop application and when I’m dragging an element inside the canvas the brush displays the element when the coordinates are negative this gives a weird resize in the brush witch also displays the negative elements.
How can I make the visual brush only draw the real size of the canvas, or the positive children of the canvas?
I’m making a drag and drop application and when I’m dragging an element inside
Share
The view port always shows the items with negative values too. I did not want this effect in my brush so i had to find another solution.
Each time the canvas size changes I call this method so when I have negative members being dragged in it doesn’t show it on the brush. Do not call this method on startup because you’re canvas width and height won’t have values.