Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

  • hin3x
    replied
    Test ok, thanks!

    Leave a comment:


  • Isomorphic
    replied
    Thanks for the report - we've fixed this in 3.1p and 4.0d - please retest with a nightly build of February 8 or later.

    Leave a comment:


  • ewilliams
    replied
    Thanks, looking forward to the fix. We are drawing near to our webapps deployment cut-off date.

    Leave a comment:


  • hin3x
    replied
    Great, looking forward to the fix!

    Leave a comment:


  • Isomorphic
    replied
    A quick note to let you know we are seeing this and one of our developers is investigating

    Regards
    Isomorphic Software

    Leave a comment:


  • hin3x
    replied
    Hello,

    I managed to extract one from our code, it contains a bit of clutter but performs the trick when you click the button.

    Code:
    	public Canvas getViewPanel() {
    		
    		
    		final ListGrid grid = new ListGrid();
    		grid.setWidth100();
    		grid.setHeight100();
    		grid.setNormalCellHeight(17);
    		grid.setCellHeight(17);
    		grid.setAutoFitMaxRecords(20);
    		grid.setAutoFitData(Autofit.BOTH);
    		grid.setAutoFitFieldWidths(true);
    		grid.setMargin(0);
    		grid.setShowHeader(false);
    		grid.setLeaveScrollbarGap(false);
    		grid.setGenerateClickOnEnter(true);
    		grid.setAutoFetchData(false);
    		grid.setAlternateRecordStyles(false);
    		
    		ArrayList<ListGridField> pickListFields = new ArrayList<ListGridField>();
    		
    		// Type
    		ListGridField typeField = new ListGridField("type");
    		typeField.setType(ListGridFieldType.TEXT);
    		typeField.setAutoFitWidth(true);
    		typeField.setCanGroupBy(true);		
    		pickListFields.add(typeField);
    		
    		// Icon
    		ListGridField iconField = new ListGridField("icon");
    		iconField.setType(ListGridFieldType.TEXT);		
    		pickListFields.add(iconField);
    		
    		grid.setFields(pickListFields.toArray(new ListGridField[pickListFields.size()]));
    
    		ListGridRecord[] records = new ListGridRecord[1];
    		records[0] = new ListGridRecord();
    		records[0].setAttribute("type", "atype");
    		records[0].setAttribute("icon", "anicon");
    		
    		grid.setData(records);
    		
    		Button b = new Button();
    		b.addClickHandler(new ClickHandler() {
    			
    			@Override
    			public void onClick(ClickEvent event) {
    				
    				grid.autoFitFields(grid.getFields());
    			}
    		});
    		
    		HLayout layout = new HLayout();
    		layout.setWidth100();
    		layout.setHeight(600);
    		layout.setMembers(grid, b);				
    
    		return layout;
    	}
    Thanks for having a look!
    Last edited by hin3x; 5 Feb 2013, 03:10.

    Leave a comment:


  • Isomorphic
    replied
    We have taken a quick look and find ourselves unable to reproduce the bug with the attached snippet of code, and the reported stack trace isn't giving us enough information to pin down the cause of this.

    Could you please show us a simple EntryPoint class containing an onModuleLoad that creates a grid and actually trips the error so we can run it on our end and determine what is causing the problem.

    Thanks
    Isomorphic Software

    Leave a comment:


  • ewilliams
    replied
    autoFitFields no longer working.

    We are experiencing the same issue. Has this been resolved in an upcoming nightly?


    Be sure your post includes:

    1. SmartClient Version: v8.3p_2013-01-22/PowerEdition Deployment (built 2013-01-22)

    2. FF 18.0.1

    3. for a server-side problem, the *complete* logs generated during processing of the failing request (do *not* trim to just the error message)

    4. for any problem processing a server response, the actual response as shown in the RPC tab in the Developer Console

    5.
    Caused by: com.google.gwt.core.client.JavaScriptException: (TypeError): this.$26a is undefined
    at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:248)
    at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
    at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561)
    at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:289)
    at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107)
    at com.smartgwt.client.widgets.grid.ListGrid.autoFitFields(ListGrid.java)
    at com.dotomi.zisa.client.Grid.autoFitAll(Grid.java:934)
    at com.dotomi.zisa.client.Grid.access$17(Grid.java:932)

    6. sample code if applicable

    Posts with incomplete information are much more likely to be ignored.

    Leave a comment:


  • com.smartgwt.client.widgets.grid.ListGrid.autoFitF ields yields this.$26a is undefined

    Hello,

    We just installed the 'v8.3p_2013-02-03/Pro Deployment 2013-02-03' build to have a look at the current state of FF18 compatibility.

    During our test cycle we had this issue popping up:
    Code:
    com.smartgwt.client.widgets.grid.ListGrid.autoFitFields(ListGrid.java)
    foo.bar.client.custom.editor.util.FooDropdownCanvas$9.onVisibilityChanged(FooDropdownCanvas.java:303)
    The 'onVisibilityChanged' method calls the 'autoFitFields' method on the grid.

    The error which we get is '(TypeError): this.$26a is undefined'. When I look in the sources there are a few places where there is a null check on this variable, maybe there is one missing? We did not have this error popping up on our previous build ( v8.3p_2012-11-30/Pro Deployment (built 2012-11-30)).

    Tested on FF 18.

    Code:
    		final ListGrid grid = new ListGrid();
    		grid.setWidth100();
    		grid.setHeight100();
    		grid.setNormalCellHeight(CELLHEIGHT);
    		grid.setCellHeight(CELLHEIGHT);
    		grid.setAutoFitMaxRecords(20);
    		grid.setAutoFitData(Autofit.BOTH);
    		grid.setAutoFitFieldWidths(true);
    		grid.setMargin(0);
    		grid.setShowHeader(false);
    		grid.setLeaveScrollbarGap(false);
    		grid.setGenerateClickOnEnter(true);
    		grid.setTabIndex(item.getTabIndex());
    		grid.setAutoFetchData(false);
    		grid.setAlternateRecordStyles(false);
    Thanks for looking in to this.
    Last edited by hin3x; 4 Feb 2013, 23:09.
Working...
X