PDA

View Full Version : HBoxLayoutContainer in widgets makes endless loops



waruschan.babachan
16 May 2016, 2:15 PM
An Example:
button = new TextButton();
button.setIcon(resources.file());
button.setText(localization.submit());
button.addSelectHandler(new SelectEvent.SelectHandler() {
@Override
public void onSelect(SelectEvent event) {
AlertMessageBox messageBox = new AlertMessageBox(localization.title(), localization.message());
http://messageBox.show (http://messagebox.show/)();
}
});

now Look in SuperDevMode Console and look the chrome Process. Endless Loop and Chrome Process in CPU increase up to 5% !

Mon May 16 22:05:46 GMT+200 2016 com.sencha.gxt.widget.core.client.container.HBoxLayoutContainer
FINEST: x-auto-19 findWidth: false findHeight: true
Mon May 16 22:05:46 GMT+200 2016 com.sencha.gxt.widget.core.client.container.HBoxLayoutContainer
FINEST: x-auto-19 doLayout size: width: 290, height: 40
Mon May 16 22:05:46 GMT+200 2016 com.sencha.gxt.widget.core.client.container.HBoxLayoutContainer
FINEST: x-auto-19 findWidth: false findHeight: true
Mon May 16 22:05:46 GMT+200 2016 com.sencha.gxt.widget.core.client.container.HBoxLayoutContainer
FINEST: x-auto-19 doLayout size: width: 290, height: 40
Mon May 16 22:05:46 GMT+200 2016 com.sencha.gxt.widget.core.client.container.HBoxLayoutContainer
FINEST: x-auto-19 findWidth: false findHeight: true
Mon May 16 22:05:46 GMT+200 2016 com.sencha.gxt.widget.core.client.container.HBoxLayoutContainer
FINEST: x-auto-19 doLayout size: width: 290, height: 40
Mon May 16 22:05:46 GMT+200 2016 com.sencha.gxt.widget.core.client.container.HBoxLayoutContainer
FINEST: x-auto-19 findWidth: false findHeight: true
Mon May 16 22:05:46 GMT+200 2016 com.sencha.gxt.widget.core.client.container.HBoxLayoutContainer
FINEST: x-auto-19 doLayout size: width: 290, height: 40
Mon May 16 22:05:46 GMT+200 2016 com.sencha.gxt.widget.core.client.container.HBoxLayoutContainer
FINEST: x-auto-19 findWidth: false findHeight: true
Mon May 16 22:05:46 GMT+200 2016 com.sencha.gxt.widget.core.client.container.HBoxLayoutContainer
FINEST: x-auto-19 doLayout size: width: 290, height: 40
Mon May 16 22:05:46 GMT+200 2016 com.sencha.gxt.widget.core.client.container.HBoxLayoutContainer
FINEST: x-auto-19 findWidth: false findHeight: true
Mon May 16 22:05:46 GMT+200 2016 com.sencha.gxt.widget.core.client.container.HBoxLayoutContainer
FINEST: x-auto-19 doLayout size: width: 290, height: 40
Mon May 16 22:05:46 GMT+200 2016 com.sencha.gxt.widget.core.client.container.HBoxLayoutContainer
FINEST: x-auto-19 findWidth: false findHeight: true
Mon May 16 22:05:46 GMT+200 2016 com.sencha.gxt.widget.core.client.container.HBoxLayoutContainer
FINEST: x-auto-19 doLayout size: width: 290, height: 40
Mon May 16 22:05:46 GMT+200 2016 com.sencha.gxt.widget.core.client.container.HBoxLayoutContainer
FINEST: x-auto-19 findWidth: false findHeight: true
Mon May 16 22:05:46 GMT+200 2016 com.sencha.gxt.widget.core.client.container.HBoxLayoutContainer
FINEST: x-auto-19 doLayout size: width: 290, height: 40
Mon May 16 22:05:46 GMT+200 2016 com.sencha.gxt.widget.core.client.container.HBoxLayoutContainer
FINEST: x-auto-19 findWidth: false findHeight: true
Mon May 16 22:05:46 GMT+200 2016 com.sencha.gxt.widget.core.client.container.HBoxLayoutContainer
FINEST: x-auto-19 doLayout size: width: 290, height: 40
Mon May 16 22:05:46 GMT+200 2016 com.sencha.gxt.widget.core.client.container.HBoxLayoutContainer
FINEST: x-auto-19 findWidth: false findHeight: true
Mon May 16 22:05:46 GMT+200 2016 com.sencha.gxt.widget.core.client.container.HBoxLayoutContainer
FINEST: x-auto-19 doLayout size: width: 290, height: 40
Mon May 16 22:05:46 GMT+200 2016 com.sencha.gxt.widget.core.client.container.HBoxLayoutContainer
FINEST: x-auto-19 findWidth: false findHeight: true
Mon May 16 22:05:46 GMT+200 2016 com.sencha.gxt.widget.core.client.container.HBoxLayoutContainer
FINEST: x-auto-19 doLayout size: width: 290, height: 40
Mon May 16 22:05:46 GMT+200 2016 com.sencha.gxt.widget.core.client.container.HBoxLayoutContainer
FINEST: x-auto-19 findWidth: false findHeight: true
Mon May 16 22:05:46 GMT+200 2016 com.sencha.gxt.widget.core.client.container.HBoxLayoutContainer
FINEST: x-auto-19 doLayout size: width: 290, height: 40
Mon May 16 22:05:46 GMT+200 2016 com.sencha.gxt.widget.core.client.container.HBoxLayoutContainer
FINEST: x-auto-19 findWidth: false findHeight: true

The same Problem in Firefox too.

I think this is very critical. HBoxLayoutContainer is used in many components like grid paging. The same Problem also there !

waruschan.babachan
18 May 2016, 11:29 AM
OK, fixed with the solution in google plus.