Hello , i having a problem using the On/Off Switch
The Switch in phone are deformed as you can see in the image .
What i can do?
Have a nice day
local function onSwitchPress( event ) local switch = event.target end local onOffSwitch = widget.newSwitch { left = 100, top = 240, style = "onOff", id = "onOffSwitch", onPress = onSwitchPress }
Hi @simaodacat ,
This is probably because of the way you’ve set up your content area. Can you post that section from your “config.lua” file?
Thanks,
Brent
application = { content = { width = 320, height = 480, scale = "zoomStretch", fps = 60, showRuntimeErrors = true, }, }
This is my config.lua
rob
July 1, 2015, 1:06am
4
It’s the zoomStretch. Can you try zoomEven?
Rob
Hi @simaodacat ,
One more option: try setting the “scale” to “letterbox” and report back what happens.
Thanks,
Brent
rob
July 4, 2015, 3:39pm
8
What happens when you try and run the widget demo sample app?
Also are you loading a widget theme?
Hi @simaodacat ,
This is probably because of the way you’ve set up your content area. Can you post that section from your “config.lua” file?
Thanks,
Brent
application = { content = { width = 320, height = 480, scale = "zoomStretch", fps = 60, showRuntimeErrors = true, }, }
This is my config.lua
rob
July 1, 2015, 1:06am
11
It’s the zoomStretch. Can you try zoomEven?
Rob
Hi @simaodacat ,
One more option: try setting the “scale” to “letterbox” and report back what happens.
Thanks,
Brent
rob
July 4, 2015, 3:39pm
15
What happens when you try and run the widget demo sample app?
Also are you loading a widget theme?