Announcement

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

    Changes HAND pointer to DEFAULT on Mouse Over for DataItem

    Hi,
    We are using Smart Gwt-5.1
    Browser: Google Chrome
    version: 47.0.2526.106 m

    Issue: Mouse pointer changes to Default from HAND when form has disabled and enabled.

    1. Initially DateItem on Mouse over shows mouse pointer as HAND.
    2. When we disable/enable form items using form.disable() and form.enable(), DateItem on Mouse over shows mouse pointer as DEFAULT.

    Please find the sample code.

    public void onModuleLoad() {
    final VLayout sampleVLayout=new VLayout();
    sampleVLayout.setWidth(250);
    sampleVLayout.setHeight(500);
    final DynamicForm dateitemForm = new DynamicForm();
    dateitemForm.setWidth(300);

    final DynamicForm checkboxForm = new DynamicForm();
    checkboxForm.setWidth(300);

    final DateItem orderDate = new DateItem();
    orderDate.setName("orderDate");
    orderDate.setTitle("Order Placed");
    orderDate.setRequired(true);

    CheckboxItem onOrder = new CheckboxItem();
    onOrder.setName("onOrder");
    onOrder.setTitle("Shipment on order");
    onOrder.setRedrawOnChange(true);
    onOrder.setWidth(50);
    onOrder.setValue(true);
    onOrder.show();
    onOrder.addChangedHandler(new ChangedHandler() {

    @Override
    public void onChanged(ChangedEvent event) {

    if(Boolean.parseBoolean(event.getValue().toString())){
    dateitemForm.enable();
    }
    else{
    dateitemForm.disable();
    }
    }
    });

    dateitemForm.setFields(orderDate);
    checkboxForm.setFields(onOrder);
    sampleVLayout.addMembers(checkboxForm,dateitemForm);
    sampleVLayout.draw();
    }

    Please suggest some soluiton

    #2
    This is by design. The HAND cursor is a hint to the end user that the control is interactive, and since it is not interactive when disabled, the HAND cursor should not be shown in this state.

    Comment


      #3
      When we again re-enable the control (Programatically)HAND cursor is not shown for the date chooser control,it still shows DEFAULT cursor.

      Comment


        #4
        It looks like you've again forgotten to post your full version. Be advised this is always required, and you always need to try your test case against the latest patched version before filing an issue.

        Comment


          #5
          Thanks for the reply.
          Our environment details are as follows:
          SGWT version :SmartGWT/5.1p/Pro/2016-01-19
          Browser: Google Chrome (47.0.2526.106 )

          we are still able to reproduce this issue with above mentioned nightly builds.

          Comment


            #6
            Note that this issue has been fixed in builds dated January 28 and later.

            Comment

            Working...
            X