Center group after scaling

Hi all. I have a numeric keyboard that appear in the center of the screen. This keyboard is a group defined in a keyboard.lua module. This keyboard have two button, for zoom in and zoom out itself by scale() statement, but when this happens, it lost the center position. How resolve this?

Hello,
You may want to experiment with the “.anchorChildren” property of the group. See this guide:

https://docs.coronalabs.com/guide/graphics/group.html

Take care,
Brent

Hello,
You may want to experiment with the “.anchorChildren” property of the group. See this guide:

https://docs.coronalabs.com/guide/graphics/group.html

Take care,
Brent