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

Left value of inline css is incorrect

3 Answers 63 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Tomasz
Top achievements
Rank 1
Tomasz asked on 20 Jan 2020, 03:25 PM
My "page-wrapper" has "left" property set to 60px. DropdownList is adding inline style to list with incorrect "left" value which is causing list to not being allined with input, as you can see in attached image. How dropdown list is calculating this values? Can I override this behaviour? It is worth to mention that normal jquery-kendo Dropdown behaves correctly, so this is a problem strictly with balzor version. 

3 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 20 Jan 2020, 03:32 PM

Hello Tomasz,

My best guess is that the TelerikRootComponent in your blazor app is not aligned with the browser viewport, body and app tags: https://docs.telerik.com/blazor-ui/troubleshooting/general-issues#popups-do-not-work

If this does not help you solve this, please open a support ticket and send me a simple reproducible where I can observe the problem so I can offer a more concrete answer.

 

Regards,
Marin Bratanov
Progress Telerik

 UI for Blazor
0
Tomasz
Top achievements
Rank 1
answered on 20 Jan 2020, 04:13 PM
I am adding Blazor Components into existing MVC application so TelerikRootComponent is not positioned as in usual File->New->Server Side BlazorApp template form VS. It is located inside this one specific view, so this might be the problem.
0
Marin Bratanov
Telerik team
answered on 20 Jan 2020, 04:33 PM

Hello Tomasz,

That's a likely reason for the problem. In such a scenario the Blazor component hierarchy does not get up to an <app> component level and it is limited to where the component is defined in the rest of the markup. I'm afraid that there is no solution for this in Blazor - there simply is not access to the DOM.

 

Regards,
Marin Bratanov
Progress Telerik

 UI for Blazor
Tags
DropDownList
Asked by
Tomasz
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Tomasz
Top achievements
Rank 1
Share this question
or