UI cleanup
Petr G [06-09-16 - 09:31]
diff --git a/ViragDevTool.lua b/ViragDevTool.lua
index cbe04fa..dfde4b2 100644
--- a/ViragDevTool.lua
+++ b/ViragDevTool.lua
@@ -460,7 +460,6 @@ function ViragDevTool:SortFnForCells(nodeList)
if a.name == "__index" then return true
elseif b.name == "__index" then return false
else
-
if tonumber(a.name) ~= nil and tonumber(b.name) ~= nil then
return tonumber(a.name)< tonumber(b.name)
else
diff --git a/ViragDevTool.xml b/ViragDevTool.xml
index 3621e2f..c0008ca 100644
--- a/ViragDevTool.xml
+++ b/ViragDevTool.xml
@@ -154,11 +154,9 @@
</OnDragStop>
</Scripts>
- <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border"
+ <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background"
tile="true">
- <BackgroundInsets>
- <AbsInset left="4" right="4" top="4" bottom="4"/>
- </BackgroundInsets>
+
<TileSize>
<AbsValue val="16"/>
</TileSize>
@@ -199,7 +197,11 @@
</Size>
<Anchors>
- <Anchor point="TOP"/>
+ <Anchor point="TOP">
+ <Offset>
+ <AbsDimension x="0" y="25"/>
+ </Offset>
+ </Anchor>
<Anchor point="BOTTOM"/>
<Anchor point="RIGHT" relativeTo="$parent" relativePoint="LEFT"/>
</Anchors>
@@ -219,12 +221,12 @@
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
- <AbsDimension x="0" y="-8"/>
+ <AbsDimension x="0" y="-25"/>
</Offset>
</Anchor>
<Anchor point="BOTTOMRIGHT">
<Offset>
- <AbsDimension x="-30" y="8"/>
+ <AbsDimension x="-30" y="32"/>
</Offset>
</Anchor>
</Anchors>
@@ -280,11 +282,11 @@
<EditBox name="$parentTextArea" autoFocus="false" parentKey="editbox">
<Size>
- <AbsDimension x="300" y="32"/>
+ <AbsDimension x="280" y="32"/>
</Size>
<Anchors>
- <Anchor point="LEFT"/>
- <Anchor point="TOP" relativeTo="$parentScrollFrame" relativePoint="BOTTOM"/>
+ <Anchor point="LEFT" x ="6"/>
+ <Anchor point="TOP" relativeTo="$parentScrollFrame" relativePoint="BOTTOM" y ="-2"/>
</Anchors>
<Scripts>
<OnEnterPressed>