|
@@ -95,6 +95,8 @@ public class Adornment : View
|
|
/// <inheritdoc/>
|
|
/// <inheritdoc/>
|
|
public override void BoundsToScreen (int col, int row, out int rcol, out int rrow, bool clipped = true)
|
|
public override void BoundsToScreen (int col, int row, out int rcol, out int rrow, bool clipped = true)
|
|
{
|
|
{
|
|
|
|
+ rcol = 0;
|
|
|
|
+ rrow = 0;
|
|
// Adornments are *Children* of a View, not SubViews. Thus View.BoundsToScreen will not work.
|
|
// Adornments are *Children* of a View, not SubViews. Thus View.BoundsToScreen will not work.
|
|
// To get the screen-relative coordinates of a Adornment, we need to know who
|
|
// To get the screen-relative coordinates of a Adornment, we need to know who
|
|
// the Parent is
|
|
// the Parent is
|
|
@@ -102,7 +104,7 @@ public class Adornment : View
|
|
rrow = row + parentFrame.Y;
|
|
rrow = row + parentFrame.Y;
|
|
rcol = col + parentFrame.X;
|
|
rcol = col + parentFrame.X;
|
|
|
|
|
|
- // We now have rcol/rrow in coordinates relative to our View's SuperView. If our View's SuperView has
|
|
|
|
|
|
+ // We now have rcol/rrow in coordinates relative to our Parent View's SuperView. If our Parent View's SuperView has
|
|
// a SuperView, keep going...
|
|
// a SuperView, keep going...
|
|
Parent?.SuperView?.BoundsToScreen (rcol, rrow, out rcol, out rrow, clipped);
|
|
Parent?.SuperView?.BoundsToScreen (rcol, rrow, out rcol, out rrow, clipped);
|
|
}
|
|
}
|
|
@@ -163,6 +165,11 @@ public class Adornment : View
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if (Parent is Label)
|
|
|
|
+ {
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
Rectangle screenBounds = BoundsToScreen (Frame);
|
|
Rectangle screenBounds = BoundsToScreen (Frame);
|
|
|
|
|
|
Attribute normalAttr = GetNormalColor ();
|
|
Attribute normalAttr = GetNormalColor ();
|