In Xojo2018 the WebDialog can be resized by.user. This is very useful when displaying list of details the user is interested in. In newer versions of Xojo including 2024R2 the web dialog can not be resized. I wonder why is this the case. Would it be possible to resize web dialog in the future?
Web2 uses Bootstrap and the modal option shows no way for user resize:
You can add a feature request if you need something that is not available in Xojo/Bootstrap.
Here is something I found with what you want (and draggable too):
https://codepen.io/misho/pen/OymoeB
Well, the WebDialogs used in the web app I am working on are serving the purpose of displaying more info than just 2 buttons with some text. They are used to show details (usually a combination of WebListBox and WebPopupMenus with some additional WebText fields and WebButtons). Being able to resize makes so much sense. I don’t know how to work around this issue other than creating more WebPages. I try to avoid anything CSS related but thanks a lot for the link.
And here is the link to feature request, please add your vote if you care:
https://tracker.xojo.com/xojoinc/xojo/-/issues/76814
I’m sorry but I don’t understand this.
At work, in Web1 the first thing we did when adding a WebDialog is disable the option for the user to be able to resize the dialog.
Our Web2 dialogs contain many and any Xojo controls and we decide how big the dialog is so the user doesn’t need to adjust the size.
Alberto, I will give you one example to illustrate why resizing would be needed. Our users start with the WebPage with the search options and list, they build list of “stuff”, many records from database that is. Now, they can pick the row in the list and add comment - this is where the WebDialog pops up and allows them to enter some text and hit button Save or Cancel. At the same time, we don’t allow overriding comments, instead the comments are added to the table so that you can see the history of comments made by specific users on specific dates. There would be handful of comments where you can see what was being done to the “stuff”. The the comments are displayed in the list on the WebDialog, only portion of the comment shows - whatever fits into the column width of the row. If there are more than 4 or 5 entries then the WebDialog becomes to small, so the user would normally try to resize to see more, maybe make it wider or taller. You could argue that the default size of the WebDialog should be made bigger, that is true but not always desired. One has to start with some default size and allow for correction of the size when needed. Different users in different situations have different needs for the size. I don’t event want to mention that it would be nice to implement saving size of the WebDialog per user (relative to container page but still user would need to resize it first). We have well defined audience for the web app, only internal users who work with it on a daily basis. We used to have desktop app but not any more because we need to do it over internet. Our users are not random “web surfers”, they require specific tasks to do them efficiently, they don’t care about Web 2 or CSS, all they want is to do their job and not waste time on anything outside of their domain, they are professionals and are patient with “fellow developer”, they are used to old Xojo2018 web app. It is a “tough sale” to convince someone that newer shiny tool can’t be used like the old one.
If you really need it now, GraffitiAlert supports resizing palette and modal dialogs. This and many other things I’ve seen you request are available in GraffitiSuite for Xojo Web.
If third-party isn’t an option, then you’ll need to either make your own WebSDK implementation or fight with the framework to modify its instances as needed until Xojo (possibly) gets around to adding those features.
Thank you for the info, I will check it out. On the other hand, I believe in “please approach”, perhaps Xojo will re-consider putting option to show vertical/horizontal scroll bars onto the WebDialog. If Xojo professionals makes life easier for developer like me then I will be able to make life easier for other professionals who have enough on their plate during the day and no time/interest in the reasons why something is difficult or impossible to do. Thanks again.
Scrolling can be done now, and quite easily. Embed your controls in a WebContainer with its ScrollDirection set to Vertical, place an instance of the WebContainer on a WebDialog, show the WebDialog. Here’s an example. That won’t get you resizing, though.
Maybe a JSPanel is an alternative for you?
Maybe it is, I didn’t have too much time to check it out yet, thanks for the info. However, it only proves that it would be useful to have as part of Xojo
Maybe that project will help you dig into WebSDK and you will be able to add any feature you want to Xojo.
Then you may share it like @Attilio_Punzi did. (Thanks Attilio).