Tile Alignments

Couple issues. A rotated object does not seem to be aligning right. We apparently fixed this in 016 but just witnessed a non centered rotated object.

I think it would be best to make a container for each tile element that is the dimensions and positions based on either colSize, rowSize or max values of cols and rows. If squeeze then this becomes the tile size but then aligned. Then once the objects are positioned, add them to the Tile directly and dispose the positioning container. I think we did that for Pack.

STYLE series for align is coming through... but for some reason, the positioning is not paying attention - again the rewrite to pos() for each tile should make this easy.

1 Like

Broken - this is with align:CENTER

image

Good... fixed this up. We had positioned based on width and height when we needed to position based on projected width and height. You can get this with ZIM boundsToGlobal() and then there is a parameter to convert to a different coordinate system - like the tile. We used it to measure the widths and heights... so just had to store that projection and use it later when we positioned. We did think we would have to use containers and then use pos() which works well for left, center, right, top, center, bottom alignment but that was thankfully unnecessary. So fixed in 018.

image