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

Strange styling issue

5 Answers 531 Views
NumericTextBox
This is a migrated thread and some comments may be shown as answers.
Philip
Top achievements
Rank 1
Philip asked on 05 Dec 2011, 11:46 PM
Has anyone noticed an odd styling issue with this control where the white background from the input area stretches out right past where it should so that it not only envelopes the up/down arrows, but also the right border of the input box? I turned off my entire style sheet so that I had no styles being rendered on the site except those from including the Kendo UI css files, and nothing changed. All the other Kendo UI controls are rendering fine on this page.

UPDATE:  It was actually a width setting in a style tag on the <input> container that I had set. If I remove it, it renders normally. Is there anyway to specify the width of this control?

5 Answers, 1 is accepted

Sort by
0
Leandro de los Santos
Top achievements
Rank 1
answered on 07 Dec 2011, 06:41 PM
Hi, i have the same problem. Any work arround?
0
V N
Top achievements
Rank 1
answered on 08 Dec 2011, 02:59 AM
I had the same problem, which I narrowed down to width property being set in the input style. I changed it to max-width and it fixed it.

<input id="custom" value="10" style="max-width:180px"/>

This seems like a bug to me.
0
Dimo
Telerik team
answered on 13 Dec 2011, 11:04 AM
Hi all,

The problem is caused by incorrect handling of the NumericTextBox' width style. The widget takes it into consideration and applies it to its client-generated wrapper element, however, does not remove it from the original <input> element.

We will fix that. In the meantime, the easiest immediate workaround to use is:


.k-numerictextbox  .k-input
{
    width: 100% !important;
}


All the best,
Dimo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Sergiu
Top achievements
Rank 2
answered on 20 Jul 2015, 05:45 PM

I was able to overcome this issue with fairly minimal CSS modification as follows:

.k-textbox > input,
.k-autocomplete .k-input,
.k-picker-wrap .k-input,
.k-numeric-wrap .k-input,
.k-dropdown-wrap .k-input,
.k-selectbox .k-input {
     margin-bottom: 2px !important;
}
.k-autocomplete.k-state-default .k-input, .k-combobox .k-state-default .k-input, .k-picker-wrap.k-state-default .k-input, .k-numeric-wrap.k-state-default .k-input, .k-multiselect-wrap, .k-slider-track, .k-slider-selection, .k-progress-status-wrap

{
   -webkit-box-shadow: none !important;
   box-shadow: none !important;
}

0
Kevin
Top achievements
Rank 1
answered on 24 Mar 2016, 01:49 PM
This worked for me! Thanks!!
Tags
NumericTextBox
Asked by
Philip
Top achievements
Rank 1
Answers by
Leandro de los Santos
Top achievements
Rank 1
V N
Top achievements
Rank 1
Dimo
Telerik team
Sergiu
Top achievements
Rank 2
Kevin
Top achievements
Rank 1
Share this question
or