When will popup location be fixed?

1 Answer 38 Views
General Discussions
Dennis
Top achievements
Rank 1
Iron
Dennis asked on 07 Dec 2023, 11:08 AM

Telerik + dotnet 8 is really annoying.

You cant mark a component as interactive, because that requires a telerikrootcomponent, and you cant put a telerikrootcomponent at the top level because then the specific component cant find the telerikrootcomponent.

And the docs https://docs.telerik.com/blazor-ui/troubleshooting/general-issues#wrong-popup-position provide no workaround at all.

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 07 Dec 2023, 03:53 PM

Hello Dennis,

The TelerikRootComponent was supposed to wrap all page content, so in essence, this is a new problem.

I will check with the devs if it's possible to fix this out-of-the-box. In the meantime, a workaround exists, but it's not elegant at all and requires the undesired popup offset to be predictable and consistent. For example, if popups show 100px down and to the right, you can pull them back with:

.k-animation-container,
.k-window {
    margin-left: -100px;
    margin-top: -100px;
}

 

Regards,
Dimo
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Telerik family, check out our getting started resources!
Dennis
Top achievements
Rank 1
Iron
commented on 08 Dec 2023, 02:52 AM

Thanks, that work-around works decently enough for the specific case I am currently working on.

I won't mark it as an accepted answer though, since it only works in the very specific situation where you can predict the page offset of the child TelerikRootComponent.

Tags
General Discussions
Asked by
Dennis
Top achievements
Rank 1
Iron
Answers by
Dimo
Telerik team
Share this question
or