Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-16561

liferay-upload / flash uploader : setting dimensions of browser button broken for Chrome

Details

    • 6.0.x, 5.2.x

    Description

      Hey, I've never used flash, so I don't understand what's going on there

      But when using liferay-upload ( ..htm/js/liferay/upload.js ) in chrome, scrolling the page is causing what is on the picture. I tried to play with it, but I really can't see the problem. It works in firefox and opera

      if (instance._overlayButton) {
      var ie6 = Liferay.Browser.isIe() && Liferay.Browser.getMajorVersion() < 7;
      var browseButton = instance._browseButton;
      var movieContentBox = instance._movieContentBox;

      var regionStyles = {};

      var calculateOffset = function() {
      var buttonWidth = browseButton.get('offsetWidth');
      var buttonHeight = browseButton.get('offsetHeight');

      var buttonOffset = browseButton.getXY();
      var deltaX = 0;
      var deltaY = 0;

      if (!ie6)

      { deltaX = A.DOM.docScrollX(); deltaY = A.DOM.docScrollY(); }

      regionStyles.left = buttonOffset[0] - deltaX;
      regionStyles.top = buttonOffset[1] - deltaY;

      movieContentBox.setStyles(regionStyles);

      try

      { instance._uploader.setButtonDimensions(buttonWidth, buttonHeight); }

      catch (e) {
      }
      };

      Attachments

        1. uploader.png
          uploader.png
          4 kB
        2. uploader1.png
          uploader1.png
          2 kB
        3. uploader2.png
          uploader2.png
          2 kB
        4. uploader3.png
          uploader3.png
          5 kB
        5. uploader4.png
          uploader4.png
          3 kB

        Activity

          People

            michael.saechang Michael Saechang
            vychtrle Jakub Liska (Inactive)
            Kiyoshi Lee Kiyoshi Lee
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              9 years, 49 weeks ago

              Packages

                Version Package
                6.2.0 CE M4