Skip to content

Commit

Permalink
fix(map): fix anchor selector layout (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
asv-soft-u04 authored Jun 27, 2024
1 parent de68d5b commit 8ce357e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
12 changes: 4 additions & 8 deletions src/Asv.Avalonia.Map/MapViewItem.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,12 @@
<ItemsControl.ItemTemplate>
<DataTemplate DataType="controls:MapAnchorSelectionActionViewModel">
<Button Command="{CompiledBinding Command}" HorizontalAlignment="Stretch">
<DockPanel>
<StackPanel DockPanel.Dock="Right">
<StackPanel DockPanel.Dock="Right" Orientation="Horizontal">
<avalonia:MaterialIcon Margin="5" Width="15" Height="15" VerticalAlignment="Center"
Kind="{CompiledBinding Icon}" />
<TextBlock VerticalAlignment="Center"
Text="{CompiledBinding Title}" />
<TextBlock VerticalAlignment="Center"
Text="{CompiledBinding Location}" />
Text="{CompiledBinding Title}"/>
</StackPanel>
<avalonia:MaterialIcon Margin="8" Width="25" Height="25"
Kind="{CompiledBinding Icon}" />
</DockPanel>
</Button>
</DataTemplate>
</ItemsControl.ItemTemplate>
Expand Down
1 change: 0 additions & 1 deletion src/Asv.Avalonia.Map/MapViewItem.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ _map.SelectedItem is MapAnchorViewModel anchorViewModel &&
flyout.Hide();
_map.SelectedItem = anchor;
}),
Location = anchor.Location
});

if (flyout.Content is ItemsControl itemsControl)
Expand Down

0 comments on commit 8ce357e

Please sign in to comment.