TextField text pushed to left on space

When I use GUILayout.TextField in my script, I find that in the standalone player, the field is not enlarged when I press space, and instead the text is shoved to the left outside the boundary of the text field. This does not happen in the editor, however. Has anyone else experienced this and have any workarounds?

Well it turns out that it wasn't the standalone player, but using GUILayout.FlexibleSpace() (to prevent the textfield expanding to fill an entire Horizontal) that caused the problem. I guess I'll just have to try to get things placed where I want them some other way.