Alignment of Form in VerticalLayout does not work!

VerticalLayout layout = new VerticalLayout();
		
layout.setWidth("778px");
layout.setHeight("400px");

Form formLogin = new Form();
		
formLogin.setFormFieldFactory(new LoginFieldFactory());
formLogin.setItemDataSource(usuarioItem);
formLogin.setVisibleItemProperties(Arrays.asList(new String[] {"login", "senha"}));
		
layout.addComponent(formLogin);
layout.setComponentAlignment(formLogin, Alignment.BOTTOM_RIGHT);

In Firebug:

...
<div class="v-form v-form-nocaption" style="width: 778px;">
	<fieldset>
		...
	</fieldset>
</div>
...
for form contain size FIXED of the VerticalLayout layout? why?

Tanks!

The Form and the default layout for it (FormLayout) have 100% width by default. Call formLogin.setSizeUndefined() and the form should align properly.