I have this fiddle: http://jsfiddle.net/y9mhE/3/
Now I want to make the canvas control fit the parent div. Since it inherits enyo.control I should be able to use the 'fit' property, but that does not seem to work.
is this a bug, or am I missing something
( http://enyojs.com/api/#enyo.Canvas )
The canvas control has a width and height property (default 500), maybe this overrides the fit property?
I must include code here, so:
enyo.kind({
name: "App",
kind: enyo.Control,
fit: true,
components: [
{
kind:enyo.Canvas,
name:"canvas",
fit:true
}
]
});