This is a migrated thread and some comments may be shown as answers.

IE Display Issue

2 Answers 93 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Dan Ehrmann
Top achievements
Rank 1
Dan Ehrmann asked on 09 Feb 2012, 10:14 PM

Had a few reports from customers that the upload control was not properly displayed. Only a small box was displayed on the screen - no browse button, and nothing happened when clicking.

I was able to reproduce the problem in IE8 compatibility mode (presumably, this would also happen in IE7 and in IE9  compatibility mode).

The span wrapper around the file input box was set to overflow:hidden, which chopped off the control display, leaving just a little bit peeking out.

I added the following to my page to fix the problem:

<style type="text/css">
.RadUpload .ruFileWrap {
    overflow:visible !important;
}
</style>

 

Since the overflow style in the telerik upload.css file is "!important", I could not find a way to fix the overflow globally - I need to add the above style to every page where the control is used. Is there a better way to do this?

2 Answers, 1 is accepted

Sort by
0
Bozhidar
Telerik team
answered on 13 Feb 2012, 11:29 AM
Hi Dan,

Actually the problem is that due to a browser bug, a style="width: 80px" is added to the span wrapper, which chops off the contents. To overcome this, you could add the following css:
.ruFileWrap
{
    width:400px !important;
}
Of course you can choose a number that best suits your design.

Another approach is to remove this style using javascript. Here's the line that does that:
var upload = $find("<%= RadUpload1.ClientID %>");
$telerik.$(".ruFileWrap", upload.get_element()).get(0).style.width = "";

 
Regards,
Bozhidar
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
MBEN
Top achievements
Rank 2
Veteran
answered on 13 Feb 2012, 10:03 PM
That does solve the issue.

Thanks for the help.
Tags
Upload (Obsolete)
Asked by
Dan Ehrmann
Top achievements
Rank 1
Answers by
Bozhidar
Telerik team
MBEN
Top achievements
Rank 2
Veteran
Share this question
or