Wicket
  1. Wicket
  2. WICKET-5154

Positioning of autocomplete popup does not take into account borders

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 6.6.0
    • Fix Version/s: 6.8.0
    • Component/s: wicket-extensions
    • Labels:
      None

      Description

      In wicket-autocomplete.js function getPosition() is used to compute the position of the input that the autocomplete is attached to. It uses the offsetTop and offsetLeft DOM properties, which does not take the borders into account. This causes the popup to be misplaced in all three browsers I have tested: IE9, Firefox 16 and Chrome 22.

      A possible solution is to take the (non-standard) clientTop and clientLeft properties into account, too.

      1. test.html
        0.3 kB
        Andrei Badea
      2. wicket-5154.diff
        5 kB
        Andrei Badea

        Activity

          People

          • Assignee:
            Martin Grigorov
            Reporter:
            Andrei Badea
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development