Skip to content

Commit

Permalink
Merge pull request #177 from thewhodidthis/bf#176--image
Browse files Browse the repository at this point in the history
visual/ImageStim: tweak _estimateBoundingBox() to use size over this._size
  • Loading branch information
apitiot committed Oct 9, 2020
2 parents 987ef20 + 54166f0 commit c203524
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions js/visual/ImageStim.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]
);
}

Expand Down

0 comments on commit c203524

Please sign in to comment.