Hi all, I'm on SmartGWT LGPL 3 2012-07-16 and FF13.
I've essentially confirmed two problems:
1) Enterprise Blue and long menus
Through upgrading a project that is on SGWT 2.5 LGPL I found this problem. A Menu which has long text causes the grey column where the icons would go to extend further than it should. Please refer to the screenshots below. This only happens to Enterprise Blue. The border on the menu in the blue skin also appears to be thicker.
2) setDefaultProperties
The second issue relates to setDefaultProperties. My app is a full window app and makes use of many 100% width and height VLayouts. So I have code like this at the app's initialisation:
This worked fine under SGWT 2.5. However since moving to SGWT 3 this has also affected context menus. Context menus now also go 100% width and height, ie, they take up the whole screen!
Simple standalone test case:
Calling or not calling setDefaultVLayout varies the results. My current fix is to setAutoWidth and setAutoHeight on the context menus, but it does not resolve the first problem (icon/grey column being too wide)
The gwt.xml file used either:
or
to switch between enterprise blue and grey.
ps, this caused many, many, many hours of frustration.
I've essentially confirmed two problems:
1) Enterprise Blue and long menus
Through upgrading a project that is on SGWT 2.5 LGPL I found this problem. A Menu which has long text causes the grey column where the icons would go to extend further than it should. Please refer to the screenshots below. This only happens to Enterprise Blue. The border on the menu in the blue skin also appears to be thicker.
2) setDefaultProperties
The second issue relates to setDefaultProperties. My app is a full window app and makes use of many 100% width and height VLayouts. So I have code like this at the app's initialisation:
Code:
VLayout defaultVLayout = new VLayout(); defaultVLayout.setHeight100(); defaultVLayout.setWidth100(); VLayout.setDefaultProperties(defaultVLayout);
Simple standalone test case:
Code:
public void onModuleLoad() { setDefaultVLayout(); VLayout layout = new VLayout(); layout.setShowEdges(true); layout.setHeight100(); layout.setWidth100(); layout.draw(); layout.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { MenuItem itmTest = new MenuItem("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"); Menu menuTest = new Menu(); menuTest.addItem(itmTest); menuTest.showContextMenu(); } }); } /** * Make all VLayouts automatically be 100% width and 100% height */ private static void setDefaultVLayout() { VLayout defaultVLayout = new VLayout(); defaultVLayout.setHeight100(); defaultVLayout.setWidth100(); VLayout.setDefaultProperties(defaultVLayout); }
The gwt.xml file used either:
Code:
<inherits name='com.smartgwt.SmartGwtNoTheme' /> <inherits name='com.smartclient.theme.enterpriseblue.EnterpriseBlue' /> <inherits name='com.smartclient.theme.enterpriseblue.EnterpriseBlueResources' />
Code:
<inherits name='com.smartgwt.SmartGwt' />
ps, this caused many, many, many hours of frustration.
Comment