Resolved: Table view scrolling, masks, and clipping

I’ve implemented a table view in my racing app to list out the various tracks the driver has raced, along with some stats. When I scroll up, however, it seems that the top entry in the table only gets clipped when the bottom of that row passes the y value specified as the “top” of the tableview.

You can see the effect in this short video:

http://mikesellsoftware.com/wp-content/uploads/NoMaskTable.mov

I thought using a mask file would fix this, but it only seems to decrease the alpha of that first row as it fades into the sunset.

http://mikesellsoftware.com/wp-content/uploads/NoMaskTable.mov

I’m using build 813. Any ideas? I’m creating my table like this. top=92 refers to the bottom of that green line in the header.

local list = widget.newTableView{ top = 92, width = 480, height = 230, bgColor = UI.BLACK, maskFile = "images/mask480x230.png" } [import]uid: 58455 topic_id: 26346 reply_id: 326346[/import]

Strange. I shrunk the mask and table size to 480x200. It masks correctly at the bottom, but not at the top. At the top it still fails to mask until the entire row is above “top”.

http://mikesellsoftware.com/wp-content/uploads/TableViewScroll.mov [import]uid: 58455 topic_id: 26346 reply_id: 106848[/import]

Resolved. I recreated with a small sample and opened a bug, and the good folks at Ansca promptly looked into it and discovered that my mask file was all butchered up. I created a proper one and it is working as expected now.

I think I’m *finally* grokking how tables/scrolls and masks are supposed to work.

Thanks, Ansca! [import]uid: 58455 topic_id: 26346 reply_id: 107027[/import]

What was wrong with your mask? [import]uid: 44647 topic_id: 26346 reply_id: 107051[/import]

Wrong size, no black border. That seems like an obvious thing, and maybe it should have been, but I still don’t get why the clipping worked at the bottom of the list when I scrolled down.

Anyway, it’s working now and I’m really grateful to Ansca for the prompt help. [import]uid: 58455 topic_id: 26346 reply_id: 107052[/import]

Weird. I have the same problem but there’s nothing wrong with my mask as far as I can tell.

Oh nevermind, I’m just an idiot. “mask” != “maskFile” [import]uid: 44647 topic_id: 26346 reply_id: 107057[/import]