public void synchronousSize(){
if(nativeTextField.getStage()!=null) {
Stage stage = nativeTextField.getStage();
float blx,bly;
int w,h;
float fullWidth,fullHeight;
if(stage instanceof VStage){
VStage vStage= (VStage) stage;
fullWidth=vStage.getFullWidth();
fullHeight=vStage.getFullHeight();
}else {
fullWidth=stage.getWidth();
fullHeight=stage.getHeight();
}
blx= (1f/fullWidth*Gdx.graphics.getWidth());
bly= (1f/fullHeight*Gdx.graphics.getHeight());
w= (int) (nativeTextField.getWidth()*blx);
h= (int) (nativeTextField.getHeight()*bly);
setSize(w,h);
synchronousPosition();
}else {
setVisible(false);
}
}