Bug? FloatingObjectLoaded event fires multiple times when rows/columns frozen

Posted by: jb9244 on 4 October 2017, 2:52 pm EST

    • Post Options:
    • Link

    Posted 4 October 2017, 2:52 pm EST

    SpreadJS 10.2.2

    The FloatingObjectLoaded event fires once for each region created by the freezing of rows and columns. The following will print “FloatingObjectLoaded” to the console four times:

    
    var spread = new GC.Spread.Sheets.Workbook(document.getElementById("ss"));
    spread.bind("FloatingObjectLoaded", function() {
      console.log("FloatingObjectLoaded");
    });
    var sheet = spread.getSheet(0);
    sheet.frozenColumnCount(1);
    sheet.frozenRowCount(1);
    var customFloatingObject = new GC.Spread.Sheets.FloatingObjects.FloatingObject("f0");
    sheet.floatingObjects.add(customFloatingObject);
    
    
  • Posted 5 October 2017, 5:31 am EST

    Hello,

    We are able to replicate the issue and hence we are escalating the same to the concerned team for the fix.

    Tracking id for your issue is #246829

    We will update you as soon as we hear anything from our concerned team.

    Thanks,

    Reeva

  • Posted 11 October 2017, 12:55 am EST

    Hello,

    This isn’t a bug of Spread because when add frozen rows/ columns, viewport area is divided into four parts. Please have a look at attached image for the same wherein a floating object can be partially hidden by scroll. So we need four part to combo the object. Actual we have 4 copy of the floating object.

    In FloatingObjectLoaded user can get actual DOM of the floating object copy, so the event fire 4 times.

    Hope it clarifies.

    Thanks,

    Reeva

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels