Announcement

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

    hoverPersist problem

    SmartClient Version: SNAPSHOT_v13.1d_2024-06-12/AllModules Development Only (built 2024-06-12)

    Chrome, FF on MacOS

    Hello, I'm trying the hoverPersist feature (which is very cool BTW) on a ListGrid, and I think I've found a bug:

    Click image for larger version  Name:	Senza-nome (1).gif Views:	0 Size:	379.8 KB ID:	272556

    As you can see, after showing the hover effect for one row, the hover effect doesn't appear for the next row. However, when you hover over another subsequent row, the effect reappears.

    It happens for every HoverPersistMode

    #2

    SmartClient Version: SNAPSHOT_v13.1d_2024-07-09/AllModules Development Only (built 2024-07-09)

    Hello, did you succeed in replicating this issue?

    This is the test case:

    Code:
    isc.ListGrid.create({
        ID: "countryList",
        width:500, height:224,
        hoverPersist:"autoPin",
        wrapCells:true, cellHeight:32, // taller rows to fit 'government' values
        data: countryData,
        fields:[
            {name:"countryCode", title:"Flag", width:60, type:"image", imageURLPrefix:"flags/24/", imageURLSuffix:".png"},
            {name:"countryName", title:"Country", width:120},
            {name:"government", title:"Government", showHover:true,
                hoverHTML:"return government_descriptions[record.government_desc]"
            }
        ],
        hoverWidth:300
    })
    
    isc.IButton.create({
        top:250,
        width:250,
        title:"Show Hover on every cell",
        actionType:"radio",
        radioGroup:"canHover",
        // When canHover is true on a ListGrid, cells will show hover text unless field.showHover is false
        click:"countryList.canHover = true"
    })
    
    isc.IButton.create({
        top:300,
        width:250,
        title:"Show Hover on <i>Government</i> cells only",
        actionType:"radio",
        radioGroup:"canHover",
        selected:true,
        // When canHover is unset on a ListGrid, cells will show hover text if field.showHover is true
        click:"countryList.canHover = null"
    })
    
    isc.IButton.create({
        top:350,
        width:250,
        title:"Suppress all cell hovers",
        actionType:"radio",
        radioGroup:"canHover",
        // When canHover is false on a ListGrid, cells will not show any hover text
        click:"countryList.canHover = false"
    })
    
    
    government_descriptions = [
        "<b>Communism</b> - a system of government in which the state plans and controls the economy and a single - often authoritarian - party holds power; state controls are imposed with the elimination of private ownership of property or capital while claiming to make progress toward a higher social order in which all goods are equally shared by the people (i.e., a classless society).",
        "<b>Constitutional monarchy</b> - a system of government in which a monarch is guided by a constitution whereby his/her rights, duties, and responsibilities are spelled out in written law or by custom.",
        "<b>Federal republic</b> - a state in which the powers of the central government are restricted and in which the component parts (states, colonies, or provinces) retain a degree of self-government; ultimate sovereign power rests with the voters who chose their governmental representatives.",
        "<b>Federal (Federative)</b> - a form of government in which sovereign power is formally divided - usually by means of a constitution - between a central authority and a number of constituent regions (states, colonies, or provinces) so that each region retains some management of its internal affairs; differs from a confederacy in that the central government exerts influence directly upon both individuals as well as upon the regional units.",
        "<b>Parliamentary monarchy</b> - a state headed by a monarch who is not actively involved in policy formation or implementation (i.e., the exercise of sovereign powers by a monarch in a ceremonial capacity); true governmental leadership is carried out by a cabinet and its head - a prime minister, premier, or chancellor - who are drawn from a legislature (parliament).",
        "<b>Republic</b> - a representative democracy in which the people's elected deputies (representatives), not the people themselves, vote on legislation."
    ]

    Comment


      #3
      Apologies, it *was* assigned, but it slipped through. We'll update here when it's been fixed.

      Comment

      Working...
      X