Breaks in IE with jQuery 1.2.6
June 3, 2008 - 4:02am — Ryura
| Project: | Center element plugin |
| Version: | 1.0 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Ahh, love this plugin but doesn't work in IE anymore.
It shows an error in jquery.js:
if(set)elem[name]=value;
Not sure what's happening here.

Comments
#1
Okay, looked into it a bit more.
It appears the problem is when using the params {vertical: center}
Here's my code:
$(function() {
$(".deck_text").center();
$("#cih_opp, #cih_you, #field_you, #field_opp").center({vertical: false});
});
#2
Alright, done some more looking into. This breaks when the border width is set to medium, since that's not a number. I don't know the equivalent for px. but I suppose someone'll have to look into it.