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

Popup with placement of center is displayed Bottom right

4 Answers 419 Views
Popup
This is a migrated thread and some comments may be shown as answers.
john
Top achievements
Rank 1
john asked on 20 Feb 2020, 03:53 PM

Hi,

 

I noticed that when i set the placement of the popup it displays in the bottom right of the screen on android.

When i set it to relative it fills the screen.

Code for below:

<telerikPrimitives:RadPopup.Popup>
        <telerikPrimitives:RadPopup
            AnimationType="Zoom"
            IsModal="True"
            IsOpen="{Binding ShowUserActions}"
            OutsideBackgroundColor="#6F000000"
            Placement="Center">

            <Grid
                Padding="30"
                BackgroundColor="White"
                HorizontalOptions="Center"
                VerticalOptions="Center">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>
                ....... content
            </Grid>

        </telerikPrimitives:RadPopup>
    </telerikPrimitives:RadPopup.Popup>

4 Answers, 1 is accepted

Sort by
0
Didi
Telerik team
answered on 21 Feb 2020, 08:11 AM

Hello John,

Thank you for the provided code.

I have tested the scenario when placement target of the popup is Button. Then when Placement is center the popup is visualied in the center of its placement target. So the control behaves as expected. - refer to the attached gif.

When the placementtarget of the popup is the page, and the Popup.Placement is Center, the control is positioned in the center of the page:

More about Placement configuration - check the following link from our documentation:

https://docs.telerik.com/devtools/xamarin/controls/popup/popup-key-features#placement-configuration

Next Steps:

What is the PlacementTarget of the popup control?

If the issue still observes please send us a stripped-down runnable version of the project? Note that you need to open a support ticket and attach the project there because in the forum only image attachments are allowed. 

Addition information:

- versions of Xamarin.Forms and Telerik UI for Xamarin used in the project.
- on which OS device version the issue occurs.

Regards,
Didi
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
john
Top achievements
Rank 1
answered on 21 Feb 2020, 10:14 AM

So I have it attached to the page itself right now.

If i attach it to an element on the page it makes no difference - Popup is still in the bottom right.

The page I am using has more than 1 element on the page.

You seem to have it inside of a content view? is that required?

 

 

0
john
Top achievements
Rank 1
answered on 21 Feb 2020, 10:39 AM

My goal for the popup was for it to appear over an existing page with some options.

I have the popup included with the page contents and the placement target is set to the page itself

0
Didi
Telerik team
answered on 24 Feb 2020, 12:10 PM

Hello John,

The popup could be attached to the page or contentview, or button, etc. I have attached a sample where the popup placement target is a ContentPage and the popup position is center. Please download the attached file and give it a try.

Next Steps:

If the issue still observes, open a support ticket and attach a modified version of the project I have provided. In this way we can research the case further.

Thank you for the understanding and I look forward to your reply. 

Regards,
Didi
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Popup
Asked by
john
Top achievements
Rank 1
Answers by
Didi
Telerik team
john
Top achievements
Rank 1
Share this question
or