TextField and CSSLayout

Hi,

Am using a textfield that is being added into a CSSLayout. Am having an issue. The textfield caption is being put on one line and then the textfield box is being put on another line.

Here is a code snippet:

    txtCurrentTimeWindow.setSizeUndefined();
    windowLayout.addComponent(txtCurrentTimeWindow);
   operationalTimeWindow.setContent(windowLayout);
    UI.getCurrent().addWindow(operationalTimeWindow);

Can someone please advise whether this is an issue with the CSSLayout and Textfield because this is a second time on 2 different screen am having this issue.

Notice that when using a VerticalLayout for instance, this issue does not happen.

Regards,

Faldeen