Browse Source

Fix width of debugger header. Draw debugger element outlines underneath windows.

Michael Ragazzon 5 years ago
parent
commit
b26f27aa31
2 changed files with 4 additions and 2 deletions
  1. 3 1
      Source/Debugger/CommonSource.h
  2. 1 1
      Source/Debugger/ElementContextHook.cpp

+ 3 - 1
Source/Debugger/CommonSource.h

@@ -47,7 +47,9 @@ em
 h1
 {
 	position: absolute;
-	top: 0px;
+	top: 0;
+	right: 0;
+	left: 0;
 	height: 22dp;
 	padding: 4dp 5dp;
 	color: white;

+ 1 - 1
Source/Debugger/ElementContextHook.cpp

@@ -44,7 +44,7 @@ ElementContextHook::~ElementContextHook()
 void ElementContextHook::Initialise(DebuggerPlugin* _debugger)
 {
 	SetId("rmlui-debug-hook");
-	SetProperty(PropertyId::ZIndex, Property(1'000'001, Property::NUMBER));
+	SetProperty(PropertyId::ZIndex, Property(999'999, Property::NUMBER));
 	debugger = _debugger;
 }