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

smaller kendo dropdownlist control height

3 Answers 290 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Troy
Top achievements
Rank 1
Troy asked on 13 Jan 2017, 06:29 PM

I would like to reduce the height of the DDL control to match the reduced height of adjacent text input fields.

See attached picture for current behavior.

Before I start messing with CSS hacks I'd like to see if there's a cleaner way.

3 Answers, 1 is accepted

Sort by
0
Eduardo Serra
Telerik team
answered on 13 Jan 2017, 06:44 PM
Hello Troy,

When it comes to working with the Kendo UI DropDownList, the only similar value that can be changed using the API would be the height of the DropDownList item list using the height property. If you want to change the height of the control's exterior, CSS is the way to go.

I have prepared a sample for you in the KEndo UI Dojo that shows two DropDownLists resized to a smaller size that might fit your requirements better; you can take a look at it here

The relevant style:

.k-dropdown .k-dropdown-wrap{
   height: 24px;
}

I hope this helps!

Regards,
Eduardo Serra
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Troy
Top achievements
Rank 1
answered on 13 Jan 2017, 07:10 PM

Thanks, I needed a couple more CSS tweaks to get it looking right (see bad, good attachments):

.k-dropdown .k-dropdown-wrap {
   height: 26px;
}
.k-dropdown-wrap .k-input {
    line-height: 22px;
}
.k-dropdown-wrap .k-icon {
    position: relative;
    top: -4px;
}

0
Leslie
Top achievements
Rank 1
answered on 01 Oct 2019, 08:09 PM
Thanks for this. Solved a problem I was having.
Tags
DropDownList
Asked by
Troy
Top achievements
Rank 1
Answers by
Eduardo Serra
Telerik team
Troy
Top achievements
Rank 1
Leslie
Top achievements
Rank 1
Share this question
or