Fixed getTextDimension() for Firefox - closes #235