Wicket
  1. Wicket
  2. WICKET-4341

Autocomplete dropdown's position is wrong when placed inside scrollable div but with position:static

    Details

      Description

      Function getPosition(obj) of wicket-autocomplete.js takes into account only those DOM path elements which are offset parents. Result is wrong when there are also elements that arent positioned (not being offset parents), but with overflow (scrollbars present). These scrollbar offsets aren't taken into account, so final result returned is wrong.

      1. wicket-autocomplete-positioning-1.4.19.patch
        1 kB
        Michal Waciega
      2. mvn-startup-project.zip
        6 kB
        Michal Waciega

        Activity

        Andrea Del Bene made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Fix Version/s 7.0.0 [ 12322958 ]
        Resolution Fixed [ 1 ]
        Hide
        Andrea Del Bene added a comment -

        Solved with WICKET-5413 and WICKET-5379.

        Show
        Andrea Del Bene added a comment - Solved with WICKET-5413 and WICKET-5379 .
        Andrea Del Bene made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Martin Grigorov made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Johan Compagner [ jcompagner ] Andrea Del Bene [ bitstorm ]
        Fix Version/s 6.12.0 [ 12324889 ]
        Resolution Fixed [ 1 ]
        Hide
        Martin Grigorov added a comment -

        Similar issue has been fixed in Wicket 6.12.
        Please re-test and let us know if it still doesn't work.

        Show
        Martin Grigorov added a comment - Similar issue has been fixed in Wicket 6.12. Please re-test and let us know if it still doesn't work.
        Michal Waciega made changes -
        Attachment mvn-startup-project.zip [ 12510833 ]
        Hide
        Michal Waciega added a comment -

        Startup maven project for reproducing the issue.

        Show
        Michal Waciega added a comment - Startup maven project for reproducing the issue.
        Martin Grigorov made changes -
        Assignee Johan Compagner [ jcompagner ]
        Hide
        Martin Grigorov added a comment -

        Johan, you often fix similar problems in this code. Can you review ?

        Show
        Martin Grigorov added a comment - Johan, you often fix similar problems in this code. Can you review ?
        Michal Waciega made changes -
        Field Original Value New Value
        Attachment wicket-autocomplete-positioning-1.4.19.patch [ 12510828 ]
        Hide
        Michal Waciega added a comment -

        Proposal of change

        Show
        Michal Waciega added a comment - Proposal of change
        Michal Waciega created issue -

          People

          • Assignee:
            Andrea Del Bene
            Reporter:
            Michal Waciega
          • Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development