Friday, December 12, 2014

Textbox wraps in FocusPanel, the focuspanel lost focus when the textbox is clicked

Hi,

I intend to build a focus panel wrapped with a few textbox. When the user clicks somewhere other than the focus panel, blur event will be triggered and the focus panel will be hided. However, when I try to click and place the cursor on the textbox to type, the focus panel lost focus. What is the problem? Where should I check?
		FocusPanel focusPanel = new FocusPanel();  		VerticalPanel verticalPanel = new VerticalPanel();  		focusPanel.setWidget(verticalPanel);  		verticalPanel.add(new TextBox());  		verticalPanel.add(new TextBox());  		RootPanel.get().add(focusPanel);
Thanks

No comments:

Post a Comment