I am working on a LiveCode Indy stack with a DataGrid configured in form mode (dgProps["fixed control height"] = false) where each row template contains a variable-length text field (ColTitle) and a thumbnail image (ThumbPreview) loaded dynamically.
When acceleratedRendering is set to true on the stack and the DataGrid's layerMode is scrolling, scrolling down past row 14 causes visual row overlap because the formattedHeight of field "ColTitle" of me inside LayoutControl appears to be cached before the thumbnail finishes resizing the row rect (I also added my diagnostic screenshot tool link under my profile Website icon, capture ID b2ac5227881a48).
Here is the handler inside the row behavior script:
Code: Select all
on LayoutControl pControlRect, pWorkingRect
local tFieldRect
put the rect of field "ColTitle" of me into tFieldRect
put item 2 of pControlRect + the formattedHeight of field "ColTitle" of me into item 4 of tFieldRect
set the rect of field "ColTitle" of me to tFieldRect
end LayoutControl
Thank you!