Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-4633

MultiFileUploadField after selecting a file does not hide properly input field

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.5.5
    • Fix Version/s: 1.5.8, 6.0.0-beta3
    • Component/s: wicket
    • Labels:
    • Environment:
      Windows 7 64-bit, JDK 1.6.0, Mozilla Firefox 13.0.1

      Description

      Component org.apache.wicket.markup.html.form.upload.MultiFileUploadField in related javascript uses code: ''this.style.position = 'absolute'; this.style.left = '-1000px' " to hide a file input after selecting a file.

      Unfortunately on my screen (1920x1200) if I put this component on the right side of a page then after selecting a file, "the hidden input" is moved to the left of its container, but still visible for a user.

      Changing style.position to 'fixed' should resolve the problem, so the input field will be positioned relative to the browser window, not to its ancestor.

        Attachments

          Activity

            People

            • Assignee:
              mgrigorov Martin Tzvetanov Grigorov
              Reporter:
              wzadlo Wojciech Zadlo
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified