diff --git a/src/view/Bitmap.js b/src/view/Bitmap.js
index 5054e80e..ddbf9e5b 100644
--- a/src/view/Bitmap.js
+++ b/src/view/Bitmap.js
@@ -87,6 +87,13 @@
this.width = rect[2];
this.height = rect[3];
}
+ else if(!this.width && !this.height){
+ var rect = this.drawable.rect;
+ if(rect){
+ this.width = rect[2];
+ this.height = rect[3];
+ }
+ }
return this;
}
});
\ No newline at end of file
diff --git a/test/html/index.html b/test/html/index.html
index 72f90e6b..190405ae 100644
--- a/test/html/index.html
+++ b/test/html/index.html
@@ -28,8 +28,8 @@
-
-
+
+