Roo/svg/Canvas.js
authorAlan Knowles <alan@roojs.com>
Wed, 23 Jun 2021 09:57:25 +0000 (17:57 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 23 Jun 2021 09:57:25 +0000 (17:57 +0800)
Roo/svg/Canvas.js

index 563f1c8..63b8497 100644 (file)
@@ -90,7 +90,7 @@ Roo.extend(Roo.svg.Canvas, Roo.bootstrap.Component,  {
         var x = p.getComputedWidth()  - p.getFrameWidth('lr');
         this.el.attr({
             width : x,
-            height : x * (gs.height / gs.width) //p.getComputedHeight() - p.getFrameWidth('tb')
+            height : x * ratio //p.getComputedHeight() - p.getFrameWidth('tb')
         });