FloatingTags render incorrectly when startColumnOffset is above a threshold

Posted by: grapecity on 2 October 2017, 9:16 am EST

  • Posted 2 October 2017, 9:16 am EST

    We are trying to render multiple floating tags on a single row such that they are displayed as shown in the image attached below (correct_layout.png), unfortunately what we see is in the image attached below (incorrect_image.png), we have noticed that that the third tag, whose offsets are set correctly by our code changes to a specific value after the floating tag collections’ add function is called, specifically it gets set to the pixel value which represents the beginning of the next column.

    This issue can be seen by running up the contents of the zip file which can be downloaded from https://www.dropbox.com/s/dcw9jo84mxol3ls/floating-tags.zip?dl=0 contains an index.html and the SpreadJS library files. My investigation has led me to believe that the problem tends to occur when the offset value is greater than the width of the column, this however might just be one possible reason for it.

    Appreciate any help you can offer in fixing this issue as quickly as possible. Please feel free to get back to me if something is not clear in the minimal reproduction zip file.

  • Posted 4 October 2017, 6:18 am EST

    Hello,

    You also needed to set the StartColumn for each floating object in order to not to override each other.

    I modified your code as follows and it showed all the FloatingObjects.

    Thanks,

    Deepak Sharma

  • Posted 25 October 2017, 3:51 am EST

    Hello Deepak,

    Sorry for the delayed reply, it seems like you missed uploading the code snippet with the change. Can you please do the needful so that I can verify the solution.

    Regards

    Subhash

  • Posted 28 October 2017, 7:56 am EST

    Hi Subhash,

    You would need to increase the column width or add the FloatingObject to different columns. Please refer to the attached modified page.

    Thanks,

    Deepak Sharma

    FloatingObjectIssue.zip

Need extra support?

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

Learn More

Forum Channels