Change Manager
This commit is contained in:
@@ -976,10 +976,11 @@ namespace Volian.Controls.Library
|
||||
int x2 = bounds.Right - 1;
|
||||
int y2 = bounds.Bottom - 1;
|
||||
GridItem myGridItem = Parent as GridItem;
|
||||
if (myGridItem == null) return;
|
||||
Panel myPanel = Parent as Panel;
|
||||
if (myGridItem == null && myPanel == null) return;
|
||||
if (row == 0 || col == 0) // Top or Left Edge - Draw on parent
|
||||
{
|
||||
using (Graphics grParent = myGridItem.CreateGraphics())
|
||||
using (Graphics grParent = myGridItem != null ? myGridItem.CreateGraphics() : myPanel.CreateGraphics())
|
||||
{
|
||||
if (row == 0)
|
||||
{
|
||||
|
Reference in New Issue
Block a user