Peculiar web dialog positioning behavior

I have a web application generated in Xojo 2021r1.1 that exhibits a peculiar behavior when it tries to position a web dialog. If the target device has a screen width of 567 pixels or greater, it will center the web dialog as expected. But if the screen width is 575 pixels or less, the dialog positions itself near the upper left side of the screen. This isn’t a show stopper but it is peculiar. Why does the Xojo web framework change its behavior when the screen width crosses the 575 pixel boundary?

I was expecting the web dialog to continue to center itself as long as the web dialog would fit the width of the screen but instead I’m getting this odd behavior.

Here’s a demo recorded using Firefox in ‘responsive design mode’. As you can see the web dialog jumps around as the screen width is altered:

Web dialog positioning demo

As I said, this isn’t a show stopper but it is peculiar. Is there a reason for this behavior?

-Wes

But it looks awful, have you noticed the overlay also not covering the whole screen leaving the underlaying controls visible?

This are BUGs, I reported them last year but there is not any news on when will this be fixed:

https://tracker.xojo.com/xojoinc/xojo/-/issues/69767

https://tracker.xojo.com/xojoinc/xojo/-/issues/69796

A deficient UI is a show stopper for me, the apps look unprofesional. In the mean time I still on Web 1

Yes, see the information on case #69767

As Xojo updates Bootstrap to version 5.3.0, I expect those bugs get fixed (I hope not following Bootstrap behavior and just centering the dialog).

That’s a Bootstrap behavior.

Not quite, Bootstrap:
2023-06-15_23-41-30.2023-06-15 23_42_43

Xojo:
2023-06-16_08-14-18.2023-06-16 08_15_55

Either

  • Xojo replicates 100% Bootstrap behavior or
  • Xojo comes up with a centered dialog if it is easier than changing Xojo’s restrictions on dialog width
1 Like

What version of bootstrap is used in the top example?

4.6 https://getbootstrap.com/docs/4.6/components/modal/

but the same behavior is with 5.3

Well we didn’t do anything special when it was first built.