Hi JD
I implemented these patches now, but I still got two different
outcomes in IE7 and FF2.
It is the same as if would use viewportOffset instead of
cumulativeOffset in my workaround. Meaning in this case in IE7 the top
is 1px higher than in FF. Any suggestions? I place these borders
around the input fields on click. Here is the code snippet:
<h2>Form</h2>
<form id="testForm" action="test.html">
<table>
<tr>
<td><label for="textField">Text:</label></td>
<td><input type="text" id="textField" /></td>
</tr>
<tr>
<td><label for="passwordField">Password:</label></td>
<td><input type="password" id="passwordField" /></td>
</tr>
</table>
</form>
function highlightElem(element) {
element = $(element);
//var cumulativeOffset = element.cumulativeOffset();
var top = $('highlightTop');
top.clonePosition(element, {setWidth: false, setHeight: false,
offsetLeft: -2, offsetTop: -2});
top.setStyle( { width: ( element.getWidth() + 4 ) + 'px', height:
'1px' } );
//top.setStyle( { top: ( cumulativeOffset.top - 2 ) + 'px', left:
( cumulativeOffset.left - 2 ) + 'px', width: ( element.getWidth() +
4 ) + 'px', height: '1px' } );
top.show();
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---