2026 r3 is useless for me [FIXED]

Getting this error. pContainerSkillButtons2 has a super that IS a webContainer, containerSkillButtons, but the error is telling me it’s not.

pContainerSkillButtons2.Name

The project item pContainerSkillButtons2 can not inherit from a web page, dialog or container that has a layout (containerSkillButtons). To share code, use a Class whose Super is WebPage, WebDialog or WebContainer as the Super instead.
pContainerSkillButtons2

That error would be just as relevant in older versions. You’re getting that error with code that worked a previous version?

What it’s telling you is that containers which have a layout cannot be used as a super. So if you use Insert → Container, that creates a container with a layout. If you want to make a container super, you need to use Insert → Class and set its super to DesktopContainer. You’ll notice it has no layout, and you can use it as a super for other containers.

If that error pops up in 2026r3 and not 2026r2.1, that’s alarming.

Yes, that is new error in 2026 r3 and it appears to not be consistent.

DesktopContainer? I assume you mean webContainer.

This is a web app.

Sure. WebContainer, DesktopContainer, same difference in this case.

Could you please create a bug report with a sample project?

I’ve been able to modify the containers. Now I have a new issue.

I’ve tried putting this line in either the webpage opening or the webpage shown event . ..

me.width = 370 'session.clientWidth
me.height = 500 'session.clientHeight

Note: I changed the amount to a fixed integer to see if the problem was with session.clientWidth.

As written, I’m getting this error:

image

Any ideas?

from Resolved issues of this release:

Web: WebPage Left, Top, Width and Height properties cannot be set anymore, as they can’t have any effect at runtime.

So how do I make the page fit the screen? Without this I can’t use my web app on handheld devices

@John_Scanlan what are you trying to achieve? Setting the container Width to the WebPage.Width or Session.ClientWidth will make the container fit the screen. Setting a WebPage.Width & Height was being silently ignored in previous releases.

If you share little project, screenshots or something to understand what you’re trying to do and the issue you’re seeing, we’ll be able to help.

I need a webpage that fits the screen. and on the phone it should be full height and width of the phone screen.

When I’ve tried to size the first container to the size of the phone screen, it ignores and give me this huge floppy window spilling out way over the edges of the screen (see below).

webpage.width = session.clientWidth was a way I found to make it static on the screen.

Desktop/laptop/pad:

What’s it’s supposed to look like on the phone:

What it does look like on the phone:

Is the WebPage.MinimumSize bigger than the screen size maybe? Setting that property to something like 300 should be fine.

Minimum width is set smaller than the smallest possible screen width . . . 346px.

Can you create a sample project, zip it, and attach to your post?

Here ya go.

screenSizeTest.zip (119.8 KB)

Testing the project:

  • Safari on Mac
  • Responsive mode set to iPhone size (393x852)
  • Within WebPage.Opening, the values of WebPage.width and WebPage.height are showing the values set in the IDE (648x1024) not the size of the browser window (393x852).

Screenshots:
Session

Window

@John_Scanlan the login in your session.opening code is using self.width and self.height for the iPhone container, whereas for the larger container you are using session.clientWidth and .clientHeight.

Edit: also see same behavior in Xojo 2026 r2.1, so doesn’t seem like anything has changed, at least not recently.

The difference that can be seen is in the desktop browser. Container contents were allowed to overflow before, 2026r3 fixed that issue, for consistency with the Desktop target.

Setting the desktop container width to the embedded login container width fixes the issue. Alternatively, you could set overflow: visible while you update the rest of the project.

Will a mod like this help you?

screenSizeTest_mod.zip (125.6 KB)

This is following some ideas from Eddie’s Electronics web app, creating mobile and desktop pages, and setting the container as centered without left/right lock:

Using Xojo2026r2.1 and Xojo2026r3 it looks like this:

Desktop

Mobile

Thanks guys.

I went the other direction and made the webpage smaller than any phone screen (300 x 300) then added the desktop container at the correct size and the phone container at the phone dimensions.

Didn’t know that a container could be bigger than the webpage.

Can I rename the topic here?

It definitely only pops up since 2026r3.

I’ve got multiple (Web) super Dialogs and Containers that had generic visible components that were created designtime. I understand why this new behaviour makes sense, however this again is a big change that needs a lot of work.

Xojo doesn’t seem to be able to update versions without introducing these breaking changes.