Element.getSize() instead of Element.getComputedSize() in Mask.resize(), fixes #1273