Announcement

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

    Chrome - Cursor does not become pointer when using HTML 4.01 Transitional DTD

    Hi,

    Our use of SmartGWT is part of a larger application. We therefore need to continue to use the HTML 4.01 Transitional DTD. When using this and Google Chrome, the cursor does not become a pointy hand when you move it over an IButton, ListGrid column header, etc.

    Can this be fixed?

    Here is the top of my HTML file:

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
       "http://www.w3.org/TR/html4/loose.dtd">
    
    <html>
      <head>
      	<meta http-equiv="X-UA-Compatible" content="IE=7">
    Thanks for your attention,

    Andrew

    #2
    Hi Andrew,
    Thanks for pointing this out to us. We've now fixed this issue. The fix will show up in all builds (including nightlies) going forward.

    Isomorphic Software

    Comment


      #3
      I have just tried build 1161 with the DOCTYPE specified above and Chrome 4.1.249.1059 (44723). I still encounter the problem.
      Last edited by AW; 28 Apr 2010, 02:34.

      Comment


        #4
        In case it helps, my test case is very similar to that in Thread 10986 (http://forums.smartclient.com/showthread.php?t=10986), but with an IButton added below the TreeGrid:

        Code:
        package com.mycompany.myapp.client;
        
        import com.google.gwt.core.client.EntryPoint;
        import com.google.gwt.user.client.ui.RootPanel;
        import com.mycompany.myapp.client.data.EmployeeXmlDS;
        import com.smartgwt.client.types.Alignment;
        import com.smartgwt.client.types.ListGridEditEvent;
        import com.smartgwt.client.types.ListGridFieldType;
        import com.smartgwt.client.widgets.IButton;
        import com.smartgwt.client.widgets.events.DrawEvent;
        import com.smartgwt.client.widgets.events.DrawHandler;
        import com.smartgwt.client.widgets.layout.VLayout;
        import com.smartgwt.client.widgets.tree.TreeGrid;
        import com.smartgwt.client.widgets.tree.TreeGridField;
        
        /**
         * Entry point classes define <code>onModuleLoad()</code>.
         */
        public class HelloWorld implements EntryPoint {
        
        	/**
        	 * This is the entry point method.
        	 */
        	public void onModuleLoad() {
        
        		TreeGridField fieldName = new TreeGridField("Name", 150);
        		TreeGridField fieldJob = new TreeGridField("Job", 150);
        		TreeGridField fieldSalary = new TreeGridField("Salary");
        
        		TreeGridField fieldMenu = new TreeGridField("Menu", 35);
        
        		fieldMenu.setImageURLPrefix("../../public/img/icn-");
        		fieldMenu.setType(ListGridFieldType.IMAGE);
        		fieldMenu.setImageURLSuffix(".gif");
        		fieldMenu.setImageWidth(23);
        		fieldMenu.setImageHeight(21);
        		fieldMenu.setCanEdit(false);
        		fieldMenu.setCanSort(false);
        		fieldMenu.setAlign(Alignment.CENTER);
        
        		final TreeGrid employeeTree = new TreeGrid();
        		employeeTree.setWidth(500);
        		employeeTree.setHeight(250);
        		employeeTree.setDataSource(EmployeeXmlDS.getInstance());
        		employeeTree.setNodeIcon("icons/16/person.png");
        		employeeTree.setFolderIcon("icons/16/person.png");
        		employeeTree.setAutoFetchData(true);
        		employeeTree.setLoadDataOnDemand(false);
        		employeeTree.setCanEdit(true);
        		employeeTree.setCanReorderRecords(true);
        		employeeTree.setCanAcceptDroppedRecords(true);
        		employeeTree.setShowDropIcons(false);
        		employeeTree.setShowOpenIcons(false);
        		employeeTree.setClosedIconSuffix("");
        		employeeTree.setFields(fieldName, fieldMenu, fieldJob, fieldSalary);
        		employeeTree.setEditByCell(true);
        		employeeTree.setEditEvent(ListGridEditEvent.CLICK);
        
        		employeeTree.addDrawHandler(new DrawHandler() {
        
        			@Override
        			public void onDraw(DrawEvent event) {
        				employeeTree.reorderField(1, 0);
        
        			}
        
        		});
        
        		VLayout mainView = new VLayout(10);
        		mainView.setHeight100();
        		mainView.setWidth100();
        
        		mainView.addMember(employeeTree);
        
        		mainView.addMember(new IButton("Save"));
        
        		RootPanel.get().add(mainView);
        	}
        
        }

        Comment


          #5
          Build 1161 does not have the fix yet. It will be updated today.

          If you're using Smart GWT EE, the nightly of this build does already has the fix.
          Last edited by smartgwt.dev; 28 Apr 2010, 02:51.

          Comment


            #6
            Fix is in SVN.

            Comment


              #7
              Yep - works in 1162.

              Comment

              Working...
              X