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

[Solved] ComboBox renders Horizontal Scrollbar that blocks bottom item in IE9

10 Answers 186 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Matt
Top achievements
Rank 1
Matt asked on 26 Mar 2012, 12:35 PM
We have a series of ComboBoxes in our site and for some obscure reason they all render fine in Firefox, Chrome etc, but in IE9 it renders a horizontal scrollbar which obscures the last (or only) item in the list.
This issues doesn't occur in compatibility mode - just in native IE9 (see attached).
Please advise.

Matt

10 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 26 Mar 2012, 01:50 PM
Hi Matt,

I am not sure how to reproduce this problem. If you open the ComboBox online demos and reduce the component's width from the configuration panel, so that a horizontal scrollbar appears, you will be able to scroll to and see the last item.

http://demos.telerik.com/aspnet-mvc/ComboBox

If the issue persists, please send me a runnable example and I will investigate further.

Kind regards,
Dimo
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now.
0
Matt
Top achievements
Rank 1
answered on 29 Mar 2012, 01:39 PM

Dimo,

Thanks for the response. We eventually tracked this down to the line-height CSS property.

In our reset.css this was being explicitly set as line-height: 1; The issue only seems to arise in IE9, but with line-height set to 1 we got the horizontal scrollbars.

Changing the line-height to ‘normal’ (which should mean basically the same thing as far as I can tell) the problem has disappeared.

Might be worth looking at adding an explicit line-height: normal to the classes applied to drop-down and autocomplete’s on IE9 (or a little play around to work our precisely what causes this).

Kind regards,

Matt

0
Dimo
Telerik team
answered on 29 Mar 2012, 02:39 PM
Hello,

I still fail to see a connection between the line-height and the horizontal scrollbar and hiding the last item, but anyway, I am glad that you have isolated the issue on your side. By the way, line-height:normal equals 1.3 on major browsers.

Regards,
Dimo
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now.
0
jfkrueger
Top achievements
Rank 1
answered on 21 Jun 2012, 06:29 PM
I have the exact same issue (without the line-height being set anywhere explicitly). The scrollbar blocks the last item, and if there are only two items in the list it makes it nearly impossible to select the last item and it is definitely not user friendly in any way. It doesn't matter how long I make the drop down width (i have tried at 500px just for kicks) and it still renders the horizontal scrollbar. The text being displayed is being trimmed so it is not even taking up the additional space.

I am creating a new select list in the model and adding it to the viewdata, which is then used to bind to the select list.

private void _BindSupplierSelectList()
{
    var suppliers = mUnitOfWork.SupplierRepository.Get(
        orderBy: q => q.OrderBy( i => i.SupplierName ) );
 
    ViewData["Supplier_Data"] = new SelectList( (IEnumerable)suppliers, "SupplierId", "SupplierName" );
}

@( Html.Telerik().DropDownList()                   
.Name("DropDownList_Suppliers")
.BindTo( (SelectList)ViewData["Supplier_Data"] ) 
.CascadeTo( "DropDownList_Categories" )
.DropDownHtmlAttributes( new { style="width:200px" } ))

One interesting thing that might lead someone to the cause is that when I set the htmldropdownattributes with a width of "auto", the width is basically 1 with a tiny and impossible to read drop down (no room to even select an item).

Has anyone figured this out yet??

Thanks!

0
Dimo
Telerik team
answered on 22 Jun 2012, 07:35 AM
Hello Joe,

If you send me a runnable example or a live URL, I will help you investigate the problem.

Kind regards,
Dimo
the Telerik team
Check out the successor of Telerik MVC Extensions - Kendo UI for ASP.NET MVC - and deem it for new ASP.NET MVC development.
0
Jeff
Top achievements
Rank 1
answered on 02 Jul 2012, 07:41 PM
I had the same issue on my Win 7 / IE 9 machine, while another developer on our team did not.   It took a while, but we tracked down the differences, and it turns out I had previously unchecked the "Display intranet sites in compatibility view" under the Tools->Compatibility View settings.   

On my machine, checking that box and turning compatibility mode back on for intranet sites made the scroll bars go away.  Hope it helps.

Jeff

EDIT:  After further testing, though turning on compatibility mode did fix the scroll bar issue, it made the app look uglier in other places, so that won't be a solution for us after all.  ;-)   Also, it seems to be specific to my machine as another developer on our team does not have the issue.   I'm not able to figure out what's different between the machines though.
0
MICHAEL
Top achievements
Rank 1
answered on 05 Jul 2012, 05:38 PM
I'm having problems too, it seems like this issue just appeared on the latest release.  A bottom horizontal scrollbar appears blocking the last item on the combo box.
0
Jeff
Top achievements
Rank 1
answered on 06 Jul 2012, 01:52 PM
Michael's info about the issue appearing with the 6/7 release was a good one.  :-)  I tried the 4/19 release and the problem does not seem to exist there.  I also have a ticket open with Telerik and Dimo is looking into it there.   I'll post this info in my ticket too.   Thanks!

EDIT: Date problem appears in should have been 6/7.  Corrected post.
0
Deepak
Top achievements
Rank 1
answered on 29 Aug 2012, 01:53 PM
I'm having the same problem.  Has this been fixed?

Thanks.
0
Deepak
Top achievements
Rank 1
answered on 18 Oct 2012, 02:31 AM
FYI, I finally figured out a way to reproduce this problem and solve it.  In our application, it occurred under the following conditions:
  1. IE 9
  2. Font Size set to 9pt.
  3. Line Height not specified
  4. Browser Zoom set to 125% or higher
  5. 3-5 items in the DropdownList.

The fix was one of the following:

  1. Change the Font Size to 8.9pt or 9.1pt.
  2. Specify a Line Height of 1.2 or more.

Hope this helps somebody.

Tags
ComboBox
Asked by
Matt
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Matt
Top achievements
Rank 1
jfkrueger
Top achievements
Rank 1
Jeff
Top achievements
Rank 1
MICHAEL
Top achievements
Rank 1
Deepak
Top achievements
Rank 1
Share this question
or