#2141 opened concernement siez to big, now is responsive
This commit is contained in:
parent
2ee902e578
commit
21c8209c85
@ -1475,10 +1475,15 @@ export default {
|
||||
if (open) {
|
||||
// paper bring to front
|
||||
this.paper_objects.bringToFront();
|
||||
// calcul opened size regarding window size
|
||||
// let ch = this.canvas.height;
|
||||
let s = this.canvas.height / (this.ray*2.8)
|
||||
// debugger;
|
||||
|
||||
// opening tweening
|
||||
this.tween = new Tween.Tween({s: this.scale, x: this.pos.x, y: this.pos.y, o: 0})
|
||||
.to({
|
||||
s: 3,
|
||||
s: s,
|
||||
x: (this.canvas.width - 450) / 2,
|
||||
y: this.canvas.height / 2,
|
||||
o: 0.8
|
||||
|
Loading…
x
Reference in New Issue
Block a user