ICEfaces
  1. ICEfaces
  2. ICE-1289

Modal Dialogs do not disable offscreen space when window is resized

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.5
    • Fix Version/s: 1.6DR#6, 1.6
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      windows xp
    • Workaround Exists:
      Yes
    • Workaround Description:
      Hide
      A user submitted the following workaround:

      #iceModalFrame {
        background-color:#e2e2e2 !important;
        opacity:0.7 !important;
        width:100% !important;
        height:100% !important;
       }

      which handles window resizing, and the percentages can be increased over 100% to take into account scrolling, although this will also cause the scrollbars to be present even when the document size isn't larger than the viewport size
      Show
      A user submitted the following workaround: #iceModalFrame {   background-color:#e2e2e2 !important;   opacity:0.7 !important;   width:100% !important;   height:100% !important;  } which handles window resizing, and the percentages can be increased over 100% to take into account scrolling, although this will also cause the scrollbars to be present even when the document size isn't larger than the viewport size

      Description

      When using a modal popup dialog, the non-dialog portion of the screen is
      disabled so that interaction is only possible with the dialog. This can be
      circumvented on pages where the page size is larger than the viewport size. One
      is able to scroll to the previously off-screen portion of the page and interact
      with the page.

      1. supportilla-3919.zip
        7 kB
        Philip Breau
      2. test.xhtml
        2 kB
        dukehoops
      1. screenshot-1.jpg
        28 kB

        Issue Links

          Activity

          Hide
          Ken Fyten added a comment -

          The modal overlay doesn't work if you don't declare a doctype. I tested with both html trans, and xhtml trans, and both work fine, but as soon as you leave off the doctype declaration the overlay only covers a small fraction of the screen.

          Looks like it's not rendering correctly in quirks mode on IE.

          Show
          Ken Fyten added a comment - The modal overlay doesn't work if you don't declare a doctype. I tested with both html trans, and xhtml trans, and both work fine, but as soon as you leave off the doctype declaration the overlay only covers a small fraction of the screen. Looks like it's not rendering correctly in quirks mode on IE.
          Hide
          dukehoops added a comment -

          Still doesn't work with Component Showcase (using Firefox 2.0) demo found here:
          http://component-showcase.icefaces.org/component-showcase/

          If the above runs older source, could you please update the demo so that one can see this component working?

          thanks
          -nikita

          Show
          dukehoops added a comment - Still doesn't work with Component Showcase (using Firefox 2.0) demo found here: http://component-showcase.icefaces.org/component-showcase/ If the above runs older source, could you please update the demo so that one can see this component working? thanks -nikita
          Hide
          Philip Breau added a comment -

          The current demos on www.icefaces.org will remain the current production branch, which is currently 1.5.3. The prebuilt demos are available in the 1.6 download bundles.

          Show
          Philip Breau added a comment - The current demos on www.icefaces.org will remain the current production branch, which is currently 1.5.3. The prebuilt demos are available in the 1.6 download bundles.
          Hide
          Ken Fyten added a comment -

          This fix doesn't work if you don't declare a doctype (use browser quirks mode). Can we make it work in quirks mode also?

          Show
          Ken Fyten added a comment - This fix doesn't work if you don't declare a doctype (use browser quirks mode). Can we make it work in quirks mode also?
          Hide
          Mircea Toma added a comment -

          Choose biggest scroll dimensions of documentElement or body elements.

          Show
          Mircea Toma added a comment - Choose biggest scroll dimensions of documentElement or body elements.

            People

            • Assignee:
              Unassigned
              Reporter:
              Philip Breau
            • Votes:
              3 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: