File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
cvat/apps/engine/static/engine/js Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -321,6 +321,9 @@ class ShapeCreatorView {
321
321
} ;
322
322
323
323
let numberOfPoints = 0 ;
324
+ this . _drawInstance . attr ( {
325
+ z_order : Number . MAX_SAFE_INTEGER ,
326
+ } ) ;
324
327
325
328
if ( this . _polyShapeSize ) {
326
329
let size = this . _polyShapeSize ;
@@ -467,6 +470,7 @@ class ShapeCreatorView {
467
470
case 'box' :
468
471
this . _drawInstance = this . _frameContent . rect ( ) . draw ( { snapToGrid : 0.1 } ) . addClass ( 'shapeCreation' ) . attr ( {
469
472
'stroke-width' : STROKE_WIDTH / this . _scale ,
473
+ z_order : Number . MAX_SAFE_INTEGER ,
470
474
} ) . on ( 'drawstop' , function ( e ) {
471
475
if ( this . _cancel ) return ;
472
476
if ( sizeUI ) {
@@ -545,10 +549,6 @@ class ShapeCreatorView {
545
549
default :
546
550
throw Error ( `Bad type found ${ this . _type } ` ) ;
547
551
}
548
-
549
- this . _drawInstance . attr ( {
550
- 'z_order' : Number . MAX_SAFE_INTEGER ,
551
- } ) ;
552
552
}
553
553
554
554
_rescaleDrawPoints ( ) {
You can’t perform that action at this time.
0 commit comments