Force layout in vaadin 6.7 after page load

I have tried to invoke forceLayout() script from server side in menubar select event. But the event not firing after the page loads. Please provide suggestion. But it works if it fires via button click or some other mouse events.