Hello,
Please review the test case below. Click the button to see the Label ci2Label missing from the print preview.
Tested in:
SmartGWT 3.0p; SmartGWT 2.5
GWT 2.4
Firefox 8.0.1; Internet Explorer 9 64-bit
Windows 7 64-bit
Developer Console output:
Please review the test case below. Click the button to see the Label ci2Label missing from the print preview.
Code:
package test3.client; import com.google.gwt.core.client.EntryPoint; import com.smartgwt.client.widgets.Canvas; import com.smartgwt.client.widgets.IButton; import com.smartgwt.client.widgets.Label; import com.smartgwt.client.widgets.events.ClickEvent; import com.smartgwt.client.widgets.events.ClickHandler; import com.smartgwt.client.widgets.form.DynamicForm; import com.smartgwt.client.widgets.form.fields.CanvasItem; import com.smartgwt.client.widgets.layout.HLayout; import com.smartgwt.client.widgets.layout.VLayout; public class Test3 implements EntryPoint { public void onModuleLoad() { VLayout mainLayout = new VLayout(); mainLayout.setWidth100(); Label ciLabel = new Label("This is shown OK."); CanvasItem ci = new CanvasItem("ci","CanvasItem1"); ci.setCanvas(ciLabel); Label ci2Label = new Label("This is missing. Why?"); HLayout ci2Layout = new HLayout(); ci2Layout.setWidth(200); ci2Layout.addMember(ci2Label); CanvasItem ci2 = new CanvasItem("ci2","CanvasItem2"); ci2.setCanvas(ci2Layout); final DynamicForm form = new DynamicForm(); form.setCellBorder(1); form.setItems(ci, ci2); IButton printButton = new IButton("Print Preview", new ClickHandler() { @Override public void onClick(ClickEvent event) { Canvas.showPrintPreview(form); } }); mainLayout.setMembers(form, printButton); mainLayout.draw(); } }
SmartGWT 3.0p; SmartGWT 2.5
GWT 2.4
Firefox 8.0.1; Internet Explorer 9 64-bit
Windows 7 64-bit
Developer Console output:
Code:
12:59:08.529:INFO:Log:initialized 12:59:08.538:WARN:Log:NOTE: Firebug is enabled. Firebug greatly slows the performance of applications that make heavy use of JavaScript. Isomorphic highly recommends Firebug for troubleshooting, but Firebug and other development tools should be disabled when assessing the real-world performance of SmartClient applications. 12:59:09.096:WARN:Log:New Class ID: 'EditPane' collides with ID of existing Class object '[DataSource ID:EditPane]'. Existing object will be replaced. This conflict would be avoided by disabling ISC Simple Names mode. See documentation for further information. 12:59:11.965:INFO:Log:isc.Page is loaded
Comment