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

Wrong style?

7 Answers 121 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
Mattias
Top achievements
Rank 1
Mattias asked on 14 Feb 2013, 10:39 AM
Hi,
I have a datepicker, textbox and one autocomplete box on my page. Textbox and autocomplete looks fine but the datepicker doesn't align correctly. Bug?
Looks the same in IE9 and FF17.



Regards,
Mattias

7 Answers, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 14 Feb 2013, 01:37 PM
Hi Mattias,

I could not reproduce the issue on our side and I think it is caused by some custom styles in your page. For your convenience I am attaching the sample project, that I tested with. Please let me know if it covers your case.
 

Regards,
Dimiter Madjarov
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Mattias
Top achievements
Rank 1
answered on 15 Feb 2013, 07:55 AM
Hi,
But I can reproduce it with your example code. If you add one div tag around each box, you'll see what I mean:
@{
    ViewBag.Title = "Home Page";
}
 
<div>
    @(Html.Kendo().DatePicker()
              .Name("datepicker")
        )
</div>
<div>
    <input type="text" name="name" value="" />
</div>
<div>
    @(Html.Kendo().AutoComplete()
          .Name("country")
          .Filter("startswith")
          .Placeholder("Select country...")
          .BindTo(new string[] {
                "Albania",
                "Andorra",
                "Armenia",
                "Austria",
                "Azerbaijan",
                "Belarus",
          })
          .Separator(", ")
    )
</div>
<div>
    <input type="text" name="name" value="" />
</div>
The datepicker have different margins then the autocomplete.



/Mattias
0
Dimiter Madjarov
Telerik team
answered on 15 Feb 2013, 12:38 PM
Hello Mattias,

This alignment occurs, because of a top and bottom padding specified in the .k-input class in kendo.common.min.css file. To change this, you could overwrite the styles.
E.g.

span.k-datepicker.k-input
{
    padding: 0;
}

You could also check the demo about Styling form elements like Kendo UI widgets.


  Greetings,
Dimiter Madjarov
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Mattias
Top achievements
Rank 1
answered on 18 Feb 2013, 08:02 AM
Hi,
Thank you, that did help.
But is it not a bug that it has different margins/paddings than for example the autocomplete?

/Mattias
0
Dimiter Madjarov
Telerik team
answered on 18 Feb 2013, 01:05 PM
Hello Mattias,

After discussing this issue with our development team, it seems that this is indeed a bug in the styling of the widgets. It will be fixed in Q1 2013 release. As a sign of gratitude I am adding Telerik points to your account.

Wish you a great day!
 

Greetings,
Dimiter Madjarov
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Mattias
Top achievements
Rank 1
answered on 20 Feb 2013, 08:24 AM
Hi,
I just tried the numerictextbox, and it seems to have the wrong styling to.

/Mattias
0
Dimiter Madjarov
Telerik team
answered on 20 Feb 2013, 02:43 PM
Hi Mattias,

Thank you for noticing this. We are aware of the issue and it is already fixed. The fix will be available in the Q1 2013 release.

Wish you a great day!

 

Kind regards,
Dimiter Madjarov
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Date/Time Pickers
Asked by
Mattias
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Mattias
Top achievements
Rank 1
Share this question
or