1
0
mirror of https://github.com/psychopy/psychojs.git synced 2025-05-10 18:50:54 +00:00

Merge pull request #177 from thewhodidthis/bf#176--image

visual/ImageStim: tweak _estimateBoundingBox() to use size over this._size
This commit is contained in:
Alain Pitiot 2020-10-09 10:25:49 +02:00 committed by GitHub
commit c203524c06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -222,10 +222,10 @@ export class ImageStim extends util.mix(VisualStim).with(ColorMixin)
if (typeof size !== 'undefined')
{
this._boundingBox = new PIXI.Rectangle(
this._pos[0] - this._size[0] / 2,
this._pos[1] - this._size[1] / 2,
this._size[0],
this._size[1]
this._pos[0] - size[0] / 2,
this._pos[1] - size[1] / 2,
size[0],
size[1]
);
}