#828 bug
chrishawaii (at gmx)

clonePosition/viewportOffset issue in IE6 for table elements

Reported by chrishawaii (at gmx) | October 15th, 2009 @ 09:42 AM

The Element#viewportOffset() triggers an issue in the ie6.
The table:

  

<div id="indicator"></div>
<table>
  <thead><tr><th>TD1</th><th>TD2</th><th>TD3</th></tr></thead>
  <tbody>
      <tr id="tr_1">
        <td><input type="text"></td>
        <td>Foo</td>
        <td>Bar Test</td>
      </tr>
      <tr id="tr_2">
        <td><input type="text"></td>
        <td>Foo</td>
        <td>Bar Test</td>
      </tr>
      <tr id="tr_3">
        <td><input type="text"></td>
        <td>Foo</td>
        <td>Bar Test</td>
      </tr>
      <tr id="tr_4">
        <td><input type="text"></td>
        <td>Foo</td>
        <td>Bar Test</td>
      </tr>
</table>



doing:
  
  $('indicator').clonePosition('tr_2', {setWidth: false, setHeight: false, offsetLeft: -30, offsetTop: -5})

The unexpected behaviour in the IE6:

  • The postion of the affected table row (tr_2) is moved on top of the table. That is why the input element of the row is not accessible any more.
  • This behaviour can be tracked by IE Developer Toolbar as well.
  • This is pretty curious, because it influences the to be cloned element.

Best regards
Christian

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Prototype JavaScript library.

Shared Ticket Bins

Pages