I'm using a floating textbox to edit the cells of a flexgrid, as the cells in it don't not have the SelStart and SelLength capabilities. Whenever the arrowkeys are pushed the textbox moves accordingly to place itself on the target cell.
The textbox is adjusted to the size of the flexgrid cells -the border widths are taken into account so that it fits exactly inside. However, it turns out the vertical alignment is different, in the textbox text is always printed at the same vertical offset from the top so it becomes vertically misaligned with the text in the flexgrid cells as in the attached figure.
It's just an ugly aesthetic effect, but if it has an easy solution I'd like to fix it.
![Name: grid.png
Views: 40
Size: 1.4 KB]()
The textbox is adjusted to the size of the flexgrid cells -the border widths are taken into account so that it fits exactly inside. However, it turns out the vertical alignment is different, in the textbox text is always printed at the same vertical offset from the top so it becomes vertically misaligned with the text in the flexgrid cells as in the attached figure.
It's just an ugly aesthetic effect, but if it has an easy solution I'd like to fix it.