Uploaded image for project: 'MyFaces Trinidad'
  1. MyFaces Trinidad
  2. TRINIDAD-986

EXTERNAL DIALOG FAILING TO RESIZE TO CONTENT

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.2.6-core
    • Fix Version/s: 1.2.8-core
    • Component/s: Components
    • Labels:
      None
    • Environment:
      Win32 FireFox

      Description

      External "Trinidad" dialog windows are resized to content using the offsets
      of the internal frame. The script "_sizeWin" as part of the Trinidad commons
      script resource bundling is failing to calculate the actual size of the inner
      content frame.

      1. Window.patch
        0.9 kB
        Gary VanMatre

        Activity

        Hide
        gvanmatre@comcast.net Gary VanMatre added a comment -

        If the height was not explicitly set, change to "auto" forcing recalculation of the offsetHeight. FireFox doesn't always detect that a PPR has changed the content size.

        Show
        gvanmatre@comcast.net Gary VanMatre added a comment - If the height was not explicitly set, change to "auto" forcing recalculation of the offsetHeight. FireFox doesn't always detect that a PPR has changed the content size.
        Hide
        gvanmatre@comcast.net Gary VanMatre added a comment -

        If the height was not explicitly set, change to "auto" forcing recalculation of the offsetHeight. FireFox doesn't always detect that a PPR has changed the content size.

        Show
        gvanmatre@comcast.net Gary VanMatre added a comment - If the height was not explicitly set, change to "auto" forcing recalculation of the offsetHeight. FireFox doesn't always detect that a PPR has changed the content size.
        Hide
        mattcooper Matt Cooper added a comment -

        Reopening because an automatic height should not be used when the dialog has defined dimensions. Auto height should only be used when the dialog has undefined dimensions because otherwise the _sizeWin function will have dialog dimensions passed into it which means the dialog has a fixed height and thus contents of the body should be allowed to stretch (e.g. 100%) to match the height of the dialog.

        Right now, with an automatic height, a percent height inside of that would resolve to zero--at least on some browsers, if not most.

        Show
        mattcooper Matt Cooper added a comment - Reopening because an automatic height should not be used when the dialog has defined dimensions. Auto height should only be used when the dialog has undefined dimensions because otherwise the _sizeWin function will have dialog dimensions passed into it which means the dialog has a fixed height and thus contents of the body should be allowed to stretch (e.g. 100%) to match the height of the dialog. Right now, with an automatic height, a percent height inside of that would resolve to zero--at least on some browsers, if not most.

          People

          • Assignee:
            mattcooper Matt Cooper
            Reporter:
            gvanmatre@comcast.net Gary VanMatre
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development