Fix center-screen when select a magpos
This commit is contained in:
@@ -136,9 +136,9 @@ export default class depot extends Vue {
|
||||
|
||||
this.currentPosition = index;
|
||||
var c = (this.$refs.positionslist as any);
|
||||
var move = index * this.BLOCKSIZE;
|
||||
if (index < this.positions.length - 2)
|
||||
move = move - 2 * this.BLOCKSIZE;
|
||||
c.scrollLeft = move;
|
||||
var move = (index * this.BLOCKSIZE) ;
|
||||
c.scrollLeft = move - (c.clientWidth /2) + this.BLOCKSIZE/2;
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user