//If that isnt set, try to add it to the keyboards parent
if (getParent() != null){
/////////////////////////
// Transform the textarea so it appears at the same place after its added to another parent
Matrix m = MTComponent.getTransformToDestinationParentSpace(ta, getParent());
ta.transform(m);
//Transform the direction vector to preserve the global direction
//from the old reference frame to the new parents one
//The translation part has to be removed from the matrix because we're transforming
//a translation vector not a point vector
v.transformDirectionVector(m);