mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
If Parent isn't movable, border now cancels Highlight event
This commit is contained in:
@@ -311,6 +311,7 @@ public abstract class ConsoleDriver
|
||||
/// <summary>Clears the <see cref="Contents"/> of the driver.</summary>
|
||||
public void ClearContents ()
|
||||
{
|
||||
Debug.WriteLine ("ClearContents");
|
||||
// TODO: This method is really "Clear Contents" now and should not be abstract (or virtual)
|
||||
Contents = new Cell [Rows, Cols];
|
||||
//CONCURRENCY: Unsynchronized access to Clip isn't safe.
|
||||
@@ -346,6 +347,7 @@ public abstract class ConsoleDriver
|
||||
/// <param name="rune">The Rune used to fill the rectangle</param>
|
||||
public void FillRect (Rectangle rect, Rune rune = default)
|
||||
{
|
||||
Debug.WriteLine ("FillRect");
|
||||
rect = Rectangle.Intersect (rect, Clip);
|
||||
lock (Contents)
|
||||
{
|
||||
|
||||
@@ -204,6 +204,7 @@ public class Border : Adornment
|
||||
{
|
||||
if (!Parent.Arrangement.HasFlag (ViewArrangement.Movable))
|
||||
{
|
||||
e.Cancel = true;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user