I’ve been reading about WebContainers as a way to get my WebApp’s WebPages to appear centered in a browser instead of TopLeft. I created a WebContainer and then moved all the controls from a particular WebPage (call it WebPage1 here) to that new WebContainer. I then dragged an instance of that new WebContainer (call the instance WebContainer1 here) onto WebPage1 and adjusted all WebPage1’s methods and handlers to so that they access WebContainer1’s fields with dot notation that prefixes references to them with WebContainer1’s name (WebContainer1.TextField1 instead of TextField1, for instance). It all works fine. Removing the Left and Top anchors on this new WebContainer now centers WebPage1
Now I’d like to place a Button (call it MobileButton here) on the new WebContainer that will anchor the WebContainer Left and Top, which makes it easier for mobile users to use WebPage1. I can’t seem to make that button do anything. I placed the following in its Action handler:
Self.LockLeft = True
Self.LockTop = True
Clicking that button fails to push WebContainer1 to Left and Top. Do I really need to have yet a second WebContainer to accomplish this?