There is a bug when using tableview and having set display.setDefault for anchorX and Y to anything other than 0.5, 0.5
After commenting out display.setDefault( “anchorX”, 0 ) and display.setDefault( “anchorX”, 0 ) it looks like expected:
[lua]
– Copy paste into main.lua
There is a bug when using tableview and having set display.setDefault for anchorX and Y to anything other than 0.5, 0.5
After commenting out display.setDefault( “anchorX”, 0 ) and display.setDefault( “anchorX”, 0 ) it looks like expected:
[lua]
– Copy paste into main.lua
display.setStatusBar( display.HiddenStatusBar )
local widget = require(“widget”)
display.setDefault( “anchorX”, 0 ) – Try commenting out to see difference
display.setDefault( “anchorY”, 0 ) – Try commenting out to see difference
local tableView = widget.newTableView {
left = 0,
top = 0,
topPadding = 0,
width = display.contentWidth,
height = display.contentHeight,
}
tableView.anchorX = 0.5
tableView.anchorY = 0.5
tableView:insertRow{
rowColor = {default = {1, 0, 0}},
}
[/lua]
[/lua]