Skip to content

Commit

Permalink
Yet another fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rds1983 committed Feb 29, 2020
1 parent b8b0217 commit 98aef78
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions samples/UI/marginBorderPadding2.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<Project>
<Project.ExportOptions />
<Panel Background="#F9CC9DFF" >
<Panel Margin="48" BorderThickness="48" Padding="48" Background="#BBD6AFFF" Border="#FFF4C3FF" >
<Panel Background="#9ABFE2FF" />
</Panel>
</Panel>
</Project>
1 change: 1 addition & 0 deletions src/Myra/Graphics2D/UI/ComboBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ private void InternalChild_PressedChanged(object sender, EventArgs e)
_listBox.SelectedIndex = 0;
}

_listBox.Width = BorderBounds.Width;
Desktop.ShowContextMenu(_listBox, new Point(Bounds.X, Bounds.Bottom));
}
}
Expand Down

0 comments on commit 98aef78

Please sign in to comment.