Announcement

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

    tile.startLine and tile.endLine do not work as expected

    Hi,

    v11.1p_2019-01-03/LGPL

    tile.startLine and tile.endLine are documented only in TileLayout.autoWrapLines.

    I would expect that startLine forces the tile having this property to become first on new line. In fact it reset breadthCounter to 0 instead to left/topMargin and do not move the tile to new line making that and all following tiles overlap with previous tiles.

    tile.endLine has that functionality that I would expect from tile.startLine. Instead it should reset breadthCounter and start a new line after that tile, making it last tile on the line (if it is not moved to a new line with autoWrapLines)

    Both should work as FormItem.startRow and endRow.

    Also please consider making possible to start/endLine with autoWrapLines set to true.

    Best regards,
    Janusz

    #2
    Posting about internal variables in source code is an ineffective and invalid way to post a bug report.

    Please start over and explain how behavior is not as documented without referring to implementation. Ideally, post a test case.

    Comment


      #3
      Here is a test case:

      Code:
      isc.FlowLayout.create({
          tileWidth:100,
          tileHeight:100,
          height:"100%",
          width:"100%",
          autoWrapLines: false,
          tiles: [
            isc.Canvas.create({ contents: "1", backgroundColor: "rgba(0,0,0,0.1)" }),
            isc.Canvas.create({ contents: "2", backgroundColor: "rgba(0,0,0,0.1)" }),
            isc.Canvas.create({ contents: "3", backgroundColor: "rgba(0,0,0,0.1)", startLine: true }),
            isc.Canvas.create({ contents: "4", backgroundColor: "rgba(0,0,0,0.1)" }),
            isc.Canvas.create({ contents: "5", backgroundColor: "rgba(0,0,0,0.1)", endLine: true }),
            isc.Canvas.create({ contents: "6", backgroundColor: "rgba(0,0,0,0.1)" }),
          ],
          fields: [
              {name:"name"},
          ]
      });
      Expected result is to have tiles arrange as:
      1 2
      3 4 5
      6
      and having left sides of tiles 1, 3 and 6 aligned.

      Comment


        #4
        We went ahead and fixed and exposed the properties startLine and endLine back to SC 11.1p, and the fix will be in the nightly builds dated 2019-01-09 for SC 12.0p+, and 2019-01-12 for SC 11.1p.

        However, it's not valid to report issues with undocumented properties as genuine bugs. Although these properties were mentioned in the docs for TileLayout.autoWrapLines, the mention was the mistake, not the properties not working. Check the FAQ here for how to get new features added to the Framework.
        Last edited by Isomorphic; 11 Jan 2019, 11:42.

        Comment

        Working...
        X