This is a migrated thread and some comments may be shown as answers.
Bug: Context menu position is wrong when using browser zoom
1 Answer 37 Views
This is a migrated thread and some comments may be shown as answers.
hwsoderlund
Top achievements
Rank 1
hwsoderlund asked on 02 Feb 2011, 06:14 PM
I have tested this in FireFox 3.6 and IE 8 on Windows 7. When I zoom with the browser to something other than 100%, the positioning of context menus with a Placement property other than Absolute is wrong. The following XAML should reproduce it. Just use the browser zoom and click the HyperlinkButtons.

<UserControl x:Class="MvvmLightScheduler01.Test01"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:teleriknav="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"
             mc:Ignorable="d">
    <Grid>
 
        <StackPanel HorizontalAlignment="Center"
                    VerticalAlignment="Center">
 
            <HyperlinkButton Content="Button 1 - Bottom"
                             Margin="5">
                <teleriknav:RadContextMenu.ContextMenu>
                    <teleriknav:RadContextMenu EventName="Click"
                                               Placement="Bottom">
                        <teleriknav:RadContextMenu.Items>
                            <teleriknav:RadMenuItem Header="Option One"></teleriknav:RadMenuItem>
                            <teleriknav:RadMenuItem Header="Option Two"></teleriknav:RadMenuItem>
                            <teleriknav:RadMenuItem Header="Option Three"></teleriknav:RadMenuItem>
                        </teleriknav:RadContextMenu.Items>
                    </teleriknav:RadContextMenu>
                </teleriknav:RadContextMenu.ContextMenu>
            </HyperlinkButton>
 
            <HyperlinkButton Content="Button 2 - Top"
                             Margin="5">
                <teleriknav:RadContextMenu.ContextMenu>
                    <teleriknav:RadContextMenu EventName="Click"
                                               Placement="Top">
                        <teleriknav:RadContextMenu.Items>
                            <teleriknav:RadMenuItem Header="Option One"></teleriknav:RadMenuItem>
                            <teleriknav:RadMenuItem Header="Option Two"></teleriknav:RadMenuItem>
                            <teleriknav:RadMenuItem Header="Option Three"></teleriknav:RadMenuItem>
                        </teleriknav:RadContextMenu.Items>
                    </teleriknav:RadContextMenu>
                </teleriknav:RadContextMenu.ContextMenu>
            </HyperlinkButton>
 
            <HyperlinkButton Content="Button 3 - Right"
                             Margin="5">
                <teleriknav:RadContextMenu.ContextMenu>
                    <teleriknav:RadContextMenu EventName="Click"
                                               Placement="Right">
                        <teleriknav:RadContextMenu.Items>
                            <teleriknav:RadMenuItem Header="Option One"></teleriknav:RadMenuItem>
                            <teleriknav:RadMenuItem Header="Option Two"></teleriknav:RadMenuItem>
                            <teleriknav:RadMenuItem Header="Option Three"></teleriknav:RadMenuItem>
                        </teleriknav:RadContextMenu.Items>
                    </teleriknav:RadContextMenu>
                </teleriknav:RadContextMenu.ContextMenu>
            </HyperlinkButton>
 
            <HyperlinkButton Content="Button 4 - Absolute (CORRECT POSITIONING)"
                             Margin="5">
                <teleriknav:RadContextMenu.ContextMenu>
                    <teleriknav:RadContextMenu EventName="Click"
                                               Placement="Absolute">
                        <teleriknav:RadContextMenu.Items>
                            <teleriknav:RadMenuItem Header="Option One"></teleriknav:RadMenuItem>
                            <teleriknav:RadMenuItem Header="Option Two"></teleriknav:RadMenuItem>
                            <teleriknav:RadMenuItem Header="Option Three"></teleriknav:RadMenuItem>
                        </teleriknav:RadContextMenu.Items>
                    </teleriknav:RadContextMenu>
                </teleriknav:RadContextMenu.ContextMenu>
            </HyperlinkButton>
 
 
        </StackPanel>
    </Grid>
</UserControl>

1 Answer, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 04 Feb 2011, 11:55 AM
Hi Henrik,

Thank you for reporting this. It is fixed and will be included with the next Latest Internal Build.
I have updated your telerik point.

All the best,
Hristo
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Tags
Menu
Asked by
hwsoderlund
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Share this question
or