mirror of
https://github.com/psychopy/psychojs.git
synced 2025-05-11 16:18:10 +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:
commit
c203524c06
@ -222,10 +222,10 @@ export class ImageStim extends util.mix(VisualStim).with(ColorMixin)
|
|||||||
if (typeof size !== 'undefined')
|
if (typeof size !== 'undefined')
|
||||||
{
|
{
|
||||||
this._boundingBox = new PIXI.Rectangle(
|
this._boundingBox = new PIXI.Rectangle(
|
||||||
this._pos[0] - this._size[0] / 2,
|
this._pos[0] - size[0] / 2,
|
||||||
this._pos[1] - this._size[1] / 2,
|
this._pos[1] - size[1] / 2,
|
||||||
this._size[0],
|
size[0],
|
||||||
this._size[1]
|
size[1]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user