AnantLabs / ocupload

Automatically exported from code.google.com/p/ocupload
0 stars 0 forks source link

Not working with images in IE #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?
Upload button does not positions correctly, for correct clicking.

What version of the product are you using? On what operating system?
Using 1.1.2, on Windows XP.

Please provide any additional information below.

Original issue reported on code.google.com by eca...@gmail.com on 16 Sep 2008 at 2:17

GoogleCodeExporter commented 9 years ago
I've encountered this as well, I've solved it by changing line 52 through 63 to 
this:

/** File Input */
var input = $(
    '<input '+
        'name="'+options.name+'" '+
        'type="file" '+
    '/>'
).css({
    position: 'relative',
    display: 'block',
    marginLeft: -225+'px',
    opacity: 0
});

I've changed the margin left from -170 to -225 and it works across IE6/7, FF1+, 
Opera
9+. Chrome still has some problems I haven't been able to identify. Would 
probably be
better calculated from the input's dimensions, but this is as stable as I could 
get
it without some serious cross-browser comparisons.

Original comment by krof.drakula on 19 Nov 2008 at 2:38