File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -143,10 +143,12 @@ const moveable = new Moveable(editorElement, {
143143const guides1 = new Guides ( horizontalRulerElement , {
144144 type : "horizontal" ,
145145 setGuides : refreshGuidelines ,
146+ backgroundColor : "#444444" ,
146147} ) ;
147148const guides2 = new Guides ( verticalRulerElement , {
148149 type : "vertical" ,
149150 setGuides : refreshGuidelines ,
151+ backgroundColor : "#444444" ,
150152} ) ;
151153
152154function setLabelCSS ( clientX : number , clientY : number ) {
@@ -185,6 +187,8 @@ KeyContoller.global.on("keydown", ({ shiftKey }) => {
185187window . addEventListener ( "resize" , ( ) => {
186188 refreshGuidelines ( ) ;
187189 moveable . updateRect ( ) ;
190+ guides1 . resize ( ) ;
191+ guides2 . resize ( ) ;
188192} ) ;
189193
190194document . body . addEventListener ( "gesturestart" , e => {
You can’t perform that action at this time.
0 commit comments