Clickable layout and textfield clickable

I implemented a clickable textfield :


		totextlayout=new VerticalLayout();
		totext=new TextField("To:");
		totextlayout.addComponent(totext);
		totextlayout.addListener(new LayoutClickListener() {
			@Override
			public void layoutClick(LayoutClickEvent event) {
				// TODO Auto-generated method stub
		        if (event.getChildComponent() == totext) {
		        	System.out.println("clicked the TextField");
		        	getWindow().addWindow(new NewContactWindow());
				}
			}
		});
		totext.setWidth("100%");
		totext.setRows(3);

The problem is when i move the textfield scrollbar and shows the window.

Any idea to fix the problem?

Thanks!!