setShowBounds() function

Can you give me details about the setShowBounds() function ?
I use it to show that an object is selected, in my level editor.
Why the bounds don’t appear at the good place ?
Is it because of the transformGroups ?