Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
IWModalWindow and templates
#4
(02-03-2023, 10:47 PM)Alexandre Machado Wrote: This issue is happening because your content element (DlgMsgBox region) doesn't have any size set (either in IW or in the template). You can fix this setting the size of the element in your template, example:

  <div class="d-none">
    {%DlgMsgBox style="width:600px; height:300px" %}
  </div>

Of course you can also set the style in it's own class in a separate CSS file or included in the HTML, it is a personal preference...

It will work that way.

Thanks for the suggestion but it is not exactly what I mean. When adding these style properties, bootstrap will not do it's resize magic.
The initial position and size on a desktop browser is ok but it also has to be ok on a handheld barcodescanner (small screen) and this is not the case.
The screen dimensions can be smaller and the user can turn the device from landscape to portrait.
The responsive nature of bootstrap makes sure the dialog is resized and in more complex situations the content can change based on the screen dimensions. By setting the width and height fixed, this is not the case.

This example is very basic to show the issue. The behaviour I am after is when opening DlgMsgBoxRegion.html in a browser. Resize the screen, turn it etc
Reply


Messages In This Thread
IWModalWindow and templates - by jeroen.rottink - 01-31-2023, 04:04 PM
RE: IWModalWindow and templates - by jeroen.rottink - 02-05-2023, 02:16 PM
RE: IWModalWindow and templates - by MJS@mjs.us - 02-06-2023, 02:41 PM
RE: IWModalWindow and templates - by MJS@mjs.us - 02-09-2023, 05:35 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)