How to prevent resizing child


I have very annoying problem.

I have square which has child - the textField. I want to prevent text resize while I’m resizing parent. I tried removing child before resize and adding it after but it doesnt help. Also when i try to add completely new textField it seams to be already resized. Btw text is embeded.