|
|
|
@ -31,10 +31,13 @@ class StraddleRowRepresentable( |
|
|
|
return canAdd |
|
|
|
return canAdd |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*** |
|
|
|
|
|
|
|
* Removes a position |
|
|
|
|
|
|
|
* Should not let holes |
|
|
|
|
|
|
|
*/ |
|
|
|
fun remove(position: Position) { |
|
|
|
fun remove(position: Position) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.selectedPositions.remove(position) |
|
|
|
this.selectedPositions.remove(position) |
|
|
|
|
|
|
|
// TODO don't let holes be created in the selected positions, but not super important |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|