[VISJSTimeline] item margin bug

[VISJSTimeline] item margin bug

  
Forge Component
(5)
Published on 2017-04-19 by Jorge Martins
5 votes
Published on 2017-04-19 by Jorge Martins

If you try to set the horizontal or vertical margins, then no items are displayed at all.  I think the fix is to remove the single quotes from the section of the options json as below:

SyntaxEditor Code Snippet

            If(ItemMarginHorizontal <> "" or ItemMarginVertical <> "",",margin: { item : {"+
                    If(ItemMarginHorizontal <> "","horizontal: "+ItemMarginHorizontal+"","")+
                    If(ItemMarginHorizontal <> "" and ItemMarginVertical <> "", ",", "")+
                    If(ItemMarginVertical <> "","vertical: "+ItemMarginVertical+"","")
            +"}}","")