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