projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e6ee18
)
Roo/svg/Canvas.js
author
Alan Knowles
<alan@roojs.com>
Wed, 23 Jun 2021 09:55:32 +0000
(17:55 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 23 Jun 2021 09:55:32 +0000
(17:55 +0800)
Roo/svg/Canvas.js
patch
|
blob
|
history
diff --git
a/Roo/svg/Canvas.js
b/Roo/svg/Canvas.js
index
8ec099a
..
a4ea5a7
100644
(file)
--- a/
Roo/svg/Canvas.js
+++ b/
Roo/svg/Canvas.js
@@
-89,7
+89,7
@@
Roo.extend(Roo.svg.Canvas, Roo.bootstrap.Component, {
var x = p.getComputedWidth() - p.getFrameWidth('lr');
this.el.attr({
width : x,
- height : (gs.height / gs.width) //p.getComputedHeight() - p.getFrameWidth('tb')
+ height :
x *
(gs.height / gs.width) //p.getComputedHeight() - p.getFrameWidth('tb')
});