In the following line, snapScaleX is used twice:
child.resize(
snapSize(size.x, isSnapToPixel, snapScaleX),
snapSize(size.y, isSnapToPixel, snapScaleX));
Looks like a copy-and-paste bug.
child.resize(
snapSize(size.x, isSnapToPixel, snapScaleX),
snapSize(size.y, isSnapToPixel, snapScaleX));
Looks like a copy-and-paste bug.