remove the y check

This commit is contained in:
fxwan
2017-04-27 12:06:14 +08:00
committed by Mikael Sand
parent 6b95d1a33c
commit 67e072307c

View File

@@ -123,8 +123,10 @@ export default function(props, container, ref) {
}
let posY = null;
if (!_.isNil(y) && fontProps.fontSize) {
if (fontProps.fontSize) {
posY = (parseFloat(y || 0) - parseFloat(fontProps.fontSize || 0)).toString();
} else if (y) {
posY = y.toString();
}
return {
textAnchor: anchors[textAnchor] || 0,