If the CanvasRenderer's viewBox is not declared, the value will be Vector2::ZERO.
Even if mSize is changed, the size of the drawables does not change. This is not the intended result.
Therefore, depending on the size, the drawables are always modified to be affected by the mSize.
Change-Id: I7ff09282e53c194401bc5e3fc7d6b90fdc379d37
if(size != mSize)
{
- mSize = size;
+ mSize = size;
+ if(mViewBox == Vector2::ZERO)
+ {
+ mViewBox = size;
+ }
mChanged = true;
}
if(size != mSize)
{
- mSize = size;
+ mSize = size;
+ if(mViewBox == Vector2::ZERO)
+ {
+ mViewBox = size;
+ }
mChanged = true;
}