Uploaded image for project: 'Document Management System'
  1. Document Management System
  2. DMS-1420

CBATS : Embedded UI Double Scroll Issue

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Done
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: Integration with CBAT
    • Labels:
      None
    • Sprint:
      DMS - Fall Sprint 8

      Description

      Embedded UI Double Scroll Issue

      Below script provided by CBATS team , needs to add on pages example create template.
      // Get height of document
      function getDocHeight(doc)

      { doc = doc || document; var body = doc.body, html = doc.documentElement; var height = Math.max( body.scrollHeight, body.offsetHeight, html.clientHeight, html.scrollHeight, html.offsetHeight ); return height; }

      // send docHeight onload
      function sendDocHeightMsg(e) {
      var ht = getDocHeight();
      parent.postMessage( JSON.stringify(

      {'docHeight': ht}

      ), '*' );
      }

      // assign onload handler
      if ( window.addEventListener )

      { window.addEventListener('load', sendDocHeightMsg, false); }

      else if ( window.attachEvent )

      { // ie8 window.attachEvent('onload', sendDocHeightMsg); }

        Attachments

          Activity

            People

            Assignee:
            narendra.kumar Narendra Kumar
            Reporter:
            rohan.khandave Rohan J Khandave (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 0h
                0h
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 5.5h
                5.5h