Problem with config.lua

Good day. Currently I’m developing a game with the 320x480 resolution. I’ve used the modernizing the config.lua(https://coronalabs.com/blog/2013/09/10/modernizing-the-config-lua/), but still my app doesn’t register a 320x480 resolution. Please help. I’m just having a problem positioning my UI elements and Game elements

Update: So far X axis remains to be @ 320, Only the Y axis is not affected

You might want to post some code and your config file. Maybe some screenshots so we can see what’s happening.

here is my code on my config.lua:

local aspectRatio = display.pixelHeight / display.pixelWidth application = { content = { width = aspectRatio \> 1 and 320 or math.floor( 480 / aspectRatio ), height = aspectRatio \< 1 and 480 or math.floor( 320 \* aspectRatio ), scale = "letterBox", fps = 60, imageSuffix = { ["@2x"] = 2.0, ["@4x"] = 4.0, }, }, }

You might want to post some code and your config file. Maybe some screenshots so we can see what’s happening.

here is my code on my config.lua:

local aspectRatio = display.pixelHeight / display.pixelWidth application = { content = { width = aspectRatio \> 1 and 320 or math.floor( 480 / aspectRatio ), height = aspectRatio \< 1 and 480 or math.floor( 320 \* aspectRatio ), scale = "letterBox", fps = 60, imageSuffix = { ["@2x"] = 2.0, ["@4x"] = 4.0, }, }, }