It turns out that the widget scaling bug I’m seeing is still present in a very simple test program I wrote that includes widget_ios without either the crawlspacelib or beebegames libraries included. My post above unfairly implied that the problem might have been associated with them. Run this code in a project with widget_ios and cycle through the simulator changing window view to iPhone, iPhone4, then iPad. Then uncomment require “widget” and repeat.
[lua]–config.lua
application = {content = {width = 320, height = 480, scale = “letterbox”,},}
–main.lua
display.setStatusBar(display.HiddenStatusBar);
– require (“widget”)
local mainGroup = display.newGroup();
local bug1 = display.newText("|–Full Size–|", 0, 0, native.systemFont, 30);
bug1:setReferencePoint(display.CenterReferencePoint);
bug1.x = display.contentWidth * 0.5 + 2; bug1.y = 50;
mainGroup:insert(bug1)
local rect1 = display.newRect(0, 0, 200, 40)
rect1:setFillColor(242, 108, 79)
rect1:setReferencePoint(display.CenterReferencePoint)
rect1.x = display.contentWidth * 0.5; rect1.y = 100
mainGroup:insert(rect1)
local bug2 = display.newText("|–Half Size–|", 0, 0, native.systemFont, 30);
bug2:setReferencePoint(display.CenterReferencePoint);
bug2.x = display.contentWidth * 0.5; bug2.y = 200;
mainGroup:insert(bug2)
bug2.xScale, bug2.yScale = .5, .5
local rect2 = display.newRect(0, 0, 210, 40)
rect2:setFillColor(242, 108, 79)
rect2:setReferencePoint(display.CenterReferencePoint)
rect2.x = display.contentWidth * 0.5; rect2.y = 230
mainGroup:insert(rect2)
rect2.xScale, rect2.yScale = .5, .5
local p1 = display.newText(“Cycle through simulator,”, 0, 0, native.systemFont, 16);
p1:setReferencePoint(display.CenterReferencePoint);
p1.x = display.contentWidth * 0.5; p1.y = 300;
mainGroup:insert(p1)
local p2 = display.newText(“changing window view to”, 0, 0, native.systemFont, 16);
p2:setReferencePoint(display.CenterReferencePoint);
p2.x = display.contentWidth * 0.5; p2.y = 320;
mainGroup:insert(p2)
local p3 = display.newText(“iPhone, iPhone4, then iPad.”, 0, 0, native.systemFont, 16);
p3:setReferencePoint(display.CenterReferencePoint);
p3.x = display.contentWidth * 0.5; p3.y = 340;
mainGroup:insert(p3)
local p4 = display.newText(‘Uncomment require “widget”’, 0, 0, native.systemFont, 16);
p4:setReferencePoint(display.CenterReferencePoint);
p4.x = display.contentWidth * 0.5; p4.y = 380;
mainGroup:insert(p4)
local p5 = display.newText(‘and repeat.’, 0, 0, native.systemFont, 16);
p5:setReferencePoint(display.CenterReferencePoint);
p5.x = display.contentWidth * 0.5; p5.y = 400;
mainGroup:insert(p5)[/lua] [import]uid: 23636 topic_id: 13083 reply_id: 54327[/import]