Fix offset in TableEditor selection

Fix offset in TableEditor selection and automatically scroll to selected row.