Search code examples
iostitaniumtableview

Titanium Mobile editable row moves inner row elements


I have a tableView with multiple TableViewRow objects, always 4. When the edit button is clicked the row can be reordered, which is working.

But when the edit button is clicked the elements inside of a row seem to be moved with margins from left and right.

The items in a row should not be moved, so I was hoping someone could tell me how I can make sure the labels inside a row element are not being moved around when edited.

I have included some images, hoping to clarify my question:

The rows when NOT edited Rows when not edited

Rows when being edited Rows when edited


Solution

  • The solution was easy, but I didnt know.

    The way to achieve this; Add a view to each row and do NOT set the left or right properties. This way the delete button and move icon are not pushing the inner view away.