Fixed resize issue
This commit is contained in:
parent
d51cba89f9
commit
b93db5b0cd
@ -32,4 +32,4 @@ svg.vector { z-index: 1000;position: relative; left:10px; top:10px; width:300px;
|
|||||||
#interface.hidden { display: none;opacity: 0 }
|
#interface.hidden { display: none;opacity: 0 }
|
||||||
#interface.visible { display: block; opacity: 1 }
|
#interface.visible { display: block; opacity: 1 }
|
||||||
|
|
||||||
#preview { position: absolute; top:20px; left:20px; stroke-dasharray: 4,4 }
|
#preview { position: absolute; top:20px; left:20px; stroke-dasharray: 4,4; }
|
@ -389,6 +389,10 @@ function Dotgrid(width,height,grid_x,grid_y,block_x,block_y,thickness = 3,lineca
|
|||||||
this.grid_y = size.height/15
|
this.grid_y = size.height/15
|
||||||
this.svg_el.setAttribute("width",size.width+"px");
|
this.svg_el.setAttribute("width",size.width+"px");
|
||||||
this.svg_el.setAttribute("height",size.height+"px");
|
this.svg_el.setAttribute("height",size.height+"px");
|
||||||
|
this.preview_el.style.width = size.width+10
|
||||||
|
this.preview_el.style.height = size.height+10
|
||||||
|
this.preview_el.setAttribute("width",size.width+"px");
|
||||||
|
this.preview_el.setAttribute("height",size.height+"px");
|
||||||
|
|
||||||
dotgrid.guide.resize(size);
|
dotgrid.guide.resize(size);
|
||||||
this.interface.update();
|
this.interface.update();
|
||||||
|
Loading…
Reference in New Issue
Block a user