This is my current application environment :
1) Java 1.5, Smart GWT 2.2, GWT 2.0.3
2) All data sources are JSON RestDataSources.
Our application has a screen with com.smartgwt.client.widgets.layout.PortalLayout to show portlets. We are using google visualization api charts in some of the portlets. But the issue is portlets with charts have following screen drawing problems.
1) It doesn't draw a chart if the chart is added to the portlet in usual way.
ex: portlet.addItem(new BarChart(tDDgs, tOptions));
We have fixed this issue by following code.
final Portlet portlet = new Portlet();
portlet.setTitle(_title);
portalLayout.addPortlet(portlet);
portlet.addResizedHandler(new ResizedHandler() {
public void onResized(ResizedEvent event) {
for (Canvas w : portlet.getItems()) {
portlet.removeItem(w);
}
portlet.addItem(new BarChart(tDDgs, tOptions));
}
});
2) Still we have the drawing issue once user maximize the PortalLayout and restore it. It doesn't show the chart portlet.
3) Chart doesn't size to the size of the pane and many times we dont see the scrollbar either until all other portlets are minimised.
Please help on these above issues.
1) Java 1.5, Smart GWT 2.2, GWT 2.0.3
2) All data sources are JSON RestDataSources.
Our application has a screen with com.smartgwt.client.widgets.layout.PortalLayout to show portlets. We are using google visualization api charts in some of the portlets. But the issue is portlets with charts have following screen drawing problems.
1) It doesn't draw a chart if the chart is added to the portlet in usual way.
ex: portlet.addItem(new BarChart(tDDgs, tOptions));
We have fixed this issue by following code.
final Portlet portlet = new Portlet();
portlet.setTitle(_title);
portalLayout.addPortlet(portlet);
portlet.addResizedHandler(new ResizedHandler() {
public void onResized(ResizedEvent event) {
for (Canvas w : portlet.getItems()) {
portlet.removeItem(w);
}
portlet.addItem(new BarChart(tDDgs, tOptions));
}
});
2) Still we have the drawing issue once user maximize the PortalLayout and restore it. It doesn't show the chart portlet.
3) Chart doesn't size to the size of the pane and many times we dont see the scrollbar either until all other portlets are minimised.
Please help on these above issues.
Comment