Yea seems we are on the right direction.
I put the mindfusion diagram in a aspx control then put this control in a page <div>.
Then I started to test via chrome developer tool.
As we could collapse and extend every html layer of current page.
If under ImageMap or SvgImage mode, in developer tool -> Element, when I point to right layer where my diagram should be, it is there, under a html form with an id. In fact this form has two sections, one contains some controls like button, one section contains my diagram.
Then if I only changed diagram clientsidemode to canvas, check via developer tool -> Elements -> same html form -> then only first section, the section with controls are still there, second section which should contains my diagram does not show up!
Interesting...well, tried check relative html layout, looks all okay, still could not figure out why the section been invisible or been modified to size 0 while on Canvas.
Thanks
Stoyo wrote on Mar 13
th, 2015 at 9:08am:
I was able to reproduce width=0 and height=0 canvas attributes by explicitly setting <ndiag:DiagramView Width="0" Height="0" ... />. This also set the size of div used for scrolling, so even if the canvas is resized from JavaScript to match Diagram.Bounds value, you still won't see it because the zero-size div. If you aren't explicitly setting zeroes for Width and Height, maybe that's done by the DiagramView' container control. What's the parent element of DiagramView in your aspx?