Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 21st, 2012  |  syntax: None  |  size: 0.45 KB  |  hits: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Why the rect created in the canvas doesn't follow the width n height stated?
  2. this.canvas = {
  3.             innerElement: TBE.CreateRectCanvasElement (Element.config.displayWidth, Element.config.displayHeight)
  4.         };
  5.     this.canvas.innerElement.style.border = '1px solid black';
  6.     this.innerElementCtx = this.canvas.innerElement.getContext("2d");
  7.     this.innerElementCtx.fillStyle = '#3ac6e5';
  8.     this.innerElementCtx.fillRect(50, 50, 100, 100);