KingPsychopath / explorercanvas

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

Can not set dimensions dynamically #44

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. var el = document.createElement('canvas');
2. el.setAttribute('height','500px');
3. el = G_vmlCanvasManager.initElement(el);

What is the expected output? What do you see instead?
Set size of element.
Thrown exception.

What version of the product are you using? On what operating system?
r3, XP, IE7

Please provide any additional information below.
If you attempt to define a height / width after initializing the element you 
retain the original 
dimensions. This is an issue if you are dynamically sizing your canvas to match 
a window size.

Original issue reported on code.google.com by pyros...@gmail.com on 21 Aug 2009 at 1:14

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
You should try without the 'px' after 500.
http://code.google.com/p/explorercanvas/issues/detail?id=43

Original comment by fabien.menager on 21 Aug 2009 at 6:30