isModal composer overlay and use of default anchors

It seems like setting the display.setDefault(“anchorX”, 0) and display.setDefault(“anchorY”, 0) is causing an issue with modals for composer.  

In the attached file, if you remove the display.setDefault from the main.lua file, the overlay will work fine and the print(“touched”) will not trigger when the overlay has the options for isModal = true

Not sure if this is a bug, even though I did submit one a few weeks ago regarding why my modals were not working correctly.  But it would be nice if the modal isModal would work even with the default set, so that I don’t have to change all my anchors around my app.

Hi @noribl87,

Try temporarily changing the default anchors back to (0.5,0.5) before you create the overlay’s objects. Then directly after, change them back to (0,0).

Best regards,

Brent

It’s a confirmed that that setting anchor points to 0,0 is causing problems on isModal for Composer. This is scheduled to be fixed soon. isModal does work correctly if you don’t change the anchor points from the default.

Hi @noribl87,

Try temporarily changing the default anchors back to (0.5,0.5) before you create the overlay’s objects. Then directly after, change them back to (0,0).

Best regards,

Brent

It’s a confirmed that that setting anchor points to 0,0 is causing problems on isModal for Composer. This is scheduled to be fixed soon. isModal does work correctly if you don’t change the anchor points from the default.