Bug when adding xAlign / yAlign to config.lua

There’s an issue when adding xAlign = “center” yAlign = “center” (or left, right, top, bottom for that matter) to the config.lua.

config.lua looking like this:

application =  
{  
 content =  
 {  
 width=320,  
 height=480,  
 fps = 30,  
 scale = "letterbox"  
 xAlign = "center"  
 yAlign = "center"  
  
 },  
}  

When adding xAlign and yAlign, the width and height no longer correspond to the size defined in the config file but automatically sets itself to width=640, height = 960.
You can try this in any of the tutorials/demos using Lime by just adding the xAlign / yAlign to config.lua.

[import]uid: 129287 topic_id: 24173 reply_id: 324173[/import]

Which width and height gets set? When I set those values nothing seems to happen, at least visually that is? [import]uid: 119420 topic_id: 24173 reply_id: 97803[/import]

Yes, I meant visually. At my end, when adding the xAlign / yAlign to config.lua, the visual output changes from 320/480 to 640/960. I’ve tried this without using Lime and then it works just fine (i.e. nothing changes). [import]uid: 129287 topic_id: 24173 reply_id: 97814[/import]

Hmm, very strange. Nothing seems to happen my send. Are you able to send me a project where it definitely changes your end and then I will try it with the latest daily incase it is something Ansca has fixed and that’s why I’m not seeing it. [import]uid: 119420 topic_id: 24173 reply_id: 97936[/import]

It could be that this has been fixed by Ansca, as I’m using build 2011.704. The only thing is that I don’t experience the bug in projects that’s not using Lime. Anyway, I’ve sent you an example which is causing the change at my end.

Thanks. [import]uid: 129287 topic_id: 24173 reply_id: 97956[/import]

I haven’t received it my send yet, which address did you send it to?

  • Edit -

Found it, Google decided to mark it as Spam. Even though it’s let all the rest of our conversations come through fine. [import]uid: 119420 topic_id: 24173 reply_id: 98086[/import]

So sorry, my fault. I can’t see how the commas escaped me. [import]uid: 129287 topic_id: 24173 reply_id: 98244[/import]

No worries, easy mistake to make and what’s great is that it was even easier to fix :slight_smile: [import]uid: 119420 topic_id: 24173 reply_id: 98491[/import]