stcherenkov / explorercanvas

Automatically exported from code.google.com/p/explorercanvas
Apache License 2.0
0 stars 0 forks source link

How do we have a placeholder for the canvas element? #109

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When I use browse the page (designed by myself) with canvas elements using IE, 
there is a canvas elements location shift.

I'd like to know if there's any place holder to take the same size of space as 
the canvas element does before the canvas element is loaded? And I've tried 
setting the size of the division to which the canvas element belong to, and it 
just doesn't work.

I am using excanvas Version 2.0

Please refer to attached shot for more information.

Original issue reported on code.google.com by qinbozho...@gmail.com on 27 Jun 2011 at 9:42

Attachments:

GoogleCodeExporter commented 9 years ago
BTW: the rounded-corner rectangle is all the canvas element about.

Original comment by qinbozho...@gmail.com on 27 Jun 2011 at 9:44

GoogleCodeExporter commented 9 years ago
Problem already solved! :)
Caused by the line 108 in excanvas:

          // default size is 300x150 in Gecko and Opera
          'text-align:left;width:75px;height:112px}';

The canvas is firstly set to the size of 300*150 and then acquires the css 
format as we set by ourown, and that's the transition period that causes the 
problem.

Thanks to my team leader's effort and advice!

Original comment by qinbozho...@gmail.com on 29 Jun 2011 at 8:27

GoogleCodeExporter commented 9 years ago
Glad you found the solution ! I'm closing this issue.

Original comment by fabien.menager on 16 Jul 2011 at 11:16