未验证 提交 3713dc66 编写于 作者: L limeng 提交者: Gitee

fix the problem of example.

Signed-off-by: Nlimeng <limeng208@huawei.com>
上级 31bdeee3
......@@ -51,6 +51,8 @@ struct OffscreenCanvasPage {
Canvas(this.context)
.width('100%')
.height('100%')
.borderWidth(5)
.borderColor('#00FF00')
.backgroundColor('#FFFFFF')
.onReady(() => {
var offContext = this.offCanvas.getContext("2d", this.settings)
......@@ -85,6 +87,8 @@ struct OffscreenCanvasPage {
Canvas(this.context)
.width('100%')
.height('100%')
.borderWidth(5)
.borderColor('#00FF00')
.backgroundColor('#FFFFFF')
.onReady(() => {
var offContext = this.offCanvas.getContext("2d", this.settings)
......@@ -135,7 +139,7 @@ struct OffscreenCanvasPage {
.width('100%')
.height('100%')
.borderWidth(5)
.borderColor(Color.Green)
.borderColor('#00FF00')
.backgroundColor('#FFFFFF')
.onReady(() => {
var offContext = this.offCanvas.getContext("2d", this.settings)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册