Hi there not sure if you are still looking for an answer, but I made a workaround for this.
What I did was, that once the grid layout had positionated the elements in the correct position, I turned off the grid layout and adjusted all the anchors of the children to the corners of each children, eliminating with this all values in their offsets. Once my objects have the anchors in these new positions I ask for the position with: