File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -73,11 +73,13 @@ export class Fork {
73
73
let area : [ number , number , number , number ] ;
74
74
75
75
if ( this . is_horizontal ( ) ) {
76
- const width = this . area . width - this . length_left + ext . gap_inner ;
77
- area = [ width , this . area . y , this . area . width - width , this . area . height ] ;
76
+ const xpos = this . area . x + this . length_left + ext . gap_inner
77
+ const width = this . area . width - this . length_left - ext . gap_inner
78
+ area = [ xpos , this . area . y , width , this . area . height ] ;
78
79
} else {
79
- const height = this . area . height - this . length_left + ext . gap_inner ;
80
- area = [ this . area . x , height , this . area . width , this . area . height - height ] ;
80
+ const ypos = this . area . y + this . length_left + ext . gap_inner
81
+ const height = this . area . height - this . length_left - ext . gap_inner ;
82
+ area = [ this . area . x , ypos , this . area . width , height ] ;
81
83
}
82
84
83
85
return new Rect . Rectangle ( area ) ;
You can’t perform that action at this time.
0 commit comments