Okay, this may get redirected to the widget forum, but I’m not sure whats going on.
I have a widget.newTableView and at the bottom of each row, I want to add a divider graphic. I know I probably could have done it with a category row or something, but I need my table rows to be in a one to one relation ship to my data rows, so inserting a thin graphic border at the bottom was the way to go.
Here is the code in question:
row.bottomBorder = display.newImageRect("images/GS\_HorizontalBar.png",189,3)
row.bottomBorder:setReferencePoint(display.TopLeftReferencePoint)
row.bottomBorder.x = 37
row.bottomBorder.y = 28
rowGroup:insert(row.bottomBorder)
The graphic is really 189x3 and I don’t have @2x or @4x versions.
Here’s the problem. In the Simulator (regardless of the skins I’ve tried), on my iPhone 5 and on my Kindle Fire, it displays perfectly. On my client’s iPhone 5 and iPhone 4 the lines extend outside the table view slightly.
The above code is in the onRenderRow for the table view and row is
local row = event.target
rowGroup is the view for the row. Everything is working like a charm, but not on his devices. Could be an OS issue, but both of our iPhone 5’s should be running identical OS’s since Apple has not update iOS6 yet.
I also believe for a time, it was wrong on his device, then it was right and now it’s wrong again.
Any one have any idea why the graphic would be scaled up a bit [import]uid: 19626 topic_id: 31840 reply_id: 331840[/import]
Posting forum posts when you’re about to pass out from exhaustion may not be wise.