diff --git a/docs/cstyle/plugins/inline/index.html b/docs/cstyle/plugins/inline/index.html
index 0f9ff6a..a5b1b3c 100644
--- a/docs/cstyle/plugins/inline/index.html
+++ b/docs/cstyle/plugins/inline/index.html
@@ -6,5 +6 @@
-
+
@@ -12 +8 @@
- GRIM UI
+
@@ -21 +17 @@
- > GRIM
+ > GUI
@@ -52,71 +48,43 @@
-26ifv.Style["display"] !="inline" {
-27xCollect = 0
-28 } else {
-29ifv.Properties.Id==n.Properties.Id {
-30// then if the x coordinate of the current element plus the x shift from its prevous siblings and the width minus 2 pixels
-31// is greater than the width of the parent plus it's x value
-32// and it is not the first element
-33ifself.X+xCollect+self.Width > parent.Width+parent.X&&i > 0 {
-34// We need to shift the element
-35// then find the prevous sibling and add its height to the Y value to shift it downwards
-36// shift the element to the base x (which should be the parent x value) and reset the xCollect
-37fmt.Println(n.Properties.Id, "broke", xCollect, self.X, self.Width, parent.Width, parent.X)
-38sibling:=s[n.Parent.Children[i-1].Properties.Id]
-39self.Y+=sibling.Height
-40self.X = copyOfX
-41xCollect = copyOfX
-42 } elseifi > 0 {
-43fmt.Println(n.Properties.Id, n.InnerText, "did not break", xCollect, self.X, self.Width, parent.Width)
-44self.X+=xCollect
-45fmt.Println(self.X)
-46 }
-47break
-48 } elseifvState.X+vState.Width > parent.Width+copyOfX&&i > 0 {
-49xCollect = copyOfX
-50 } else {
-51xCollect+=vState.Width+vState.X
-52ifvState.X+vState.Width+xCollect > parent.Width+parent.X {
-53// If the elements are on the same line add the width of the elemenet
-54ifi > 0 {
-55sibling:=s[n.Parent.Children[i-1].Properties.Id]
-56// !ISSUE: Commenting this out my help but can't decide
-57ifn.Parent.Children[i-1].Style["display"] !="inline" {
-58self.Y+=sibling.Height
-59 }
-60 }
-61// !ISSUE: when not added and just set equal it shift one that collides but when added it breaks the line everytime
-62ifcolliderDetection(vState, self) {
-63xCollect+=vState.Width
-64 } else {
-65xCollect = 0
-66 }
-67 }
-68 }
-69 }
-70 }
-71propagateOffsets(n, copyOfX, copyOfY, self, state)
-72 (*state)[n.Properties.Id] = self
-73 },
-74 }
-75}
-76
-77funcpropagateOffsets(n*element.Node, copyOfX, copyOfYfloat32, selfelement.State, state*map[string]element.State) {
-78s:=*state
-79for_, v:=rangen.Children {
-80vState:=s[v.Properties.Id]
-81vState.X+=self.X-copyOfX
-82vState.Y+=self.Y-copyOfY
-83if len(v.Children) > 0 {
-84propagateOffsets(&v, copyOfX, copyOfY, self, state)
-85 }
-86 (*state)[v.Properties.Id] = vState
-87 }
-88}
-89
-90funccolliderDetection(s1, s2element.State) bool {
-91s1Min:=s1.Y
-92s1Max:=s1.Y+s1.Height
-93s2Min:=s2.Y
-94s2Max:=s2.Y+s2.Height
-95returns1Min > s2Min&&s1Min < s2Max||s1Max > s2Min&&s1Min < s2Max||s2Min > s1Min&&s2Min < s1Max||s2Max > s1Min&&s2Min < s1Max
-96}
+26ifv.Properties.Id==n.Properties.Id {
+27// then if the x coordinate of the current element plus the x shift from its prevous siblings and the width minus 2 pixels
+28// is greater than the width of the parent plus it's x value
+29// and it is not the first element
+30ifself.X+xCollect+self.Width-2 > parent.Width+parent.X&&i > 0 {
+31// We need to shift the element
+32// then find the prevous sibling and add its height to the Y value to shift it downwards
+33// shift the element to the base x (which should be the parent x value) and reset the xCollect
+34sibling:=s[n.Parent.Children[i-1].Properties.Id]
+35self.Y+=sibling.Height
+36self.X = copyOfX
+37xCollect = copyOfX
+38fmt.Println(n.Properties.Id, "broke")
+39 } elseifi > 0 {
+40fmt.Println(n.Properties.Id, n.InnerText, "did not break", xCollect, self.X, self.Width, parent.Width)
+41self.X+=xCollect
+42fmt.Println(self.X)
+43 }
+44break
+45 } elseifvState.X+vState.Width-2 > parent.Width+copyOfX&&i > 0 {
+46xCollect = copyOfX
+47 } else {
+48xCollect+=vState.Width
+49 }
+50 }
+51propagateOffsets(n, copyOfX, copyOfY, self, state)
+52 (*state)[n.Properties.Id] = self
+53 },
+54 }
+55}
+56
+57funcpropagateOffsets(n*element.Node, copyOfX, copyOfYfloat32, selfelement.State, state*map[string]element.State) {
+58s:=*state
+59for_, v:=rangen.Children {
+60vState:=s[v.Properties.Id]
+61vState.X+=self.X-copyOfX
+62vState.X+=self.Y-copyOfY
+63if len(v.Children) > 0 {
+64propagateOffsets(&v, copyOfX, copyOfY, self, state)
+65 }
+66 (*state)[v.Properties.Id] = vState
+67 }
+68}
1packageinline 2 3import (
4"fmt" 5"gui/cstyle" 6"gui/element" 7)
8 9funcInit() cstyle.Plugin {
10returncstyle.Plugin{
11Styles: map[string]string{
12"display": "inline",
13 },
14Level: 1,
15Handler: func(n*element.Node, state*map[string]element.State) {
16s:=*state17self:=s[n.Properties.Id]
18parent:=s[n.Parent.Properties.Id]
19copyOfX:=self.X20copyOfY:=self.Y21xCollect:=copyOfX22// !ISSUE: Look at the if statements to see if they are properly selecting the correct elements
23fori, v:=rangen.Parent.Children {
24vState:=s[v.Properties.Id]
25// if the element is the element being calculated currently
26ifv.Style["display"] !="inline" {
27xCollect = 028 } else {
29ifv.Properties.Id==n.Properties.Id {
30// then if the x coordinate of the current element plus the x shift from its prevous siblings and the width minus 2 pixels
31// is greater than the width of the parent plus it's x value
32// and it is not the first element
33ifself.X+xCollect+self.Width > parent.Width+parent.X&&i > 0 {
34// We need to shift the element
35// then find the prevous sibling and add its height to the Y value to shift it downwards
36// shift the element to the base x (which should be the parent x value) and reset the xCollect
37fmt.Println(n.Properties.Id, "broke", xCollect, self.X, self.Width, parent.Width, parent.X)
38sibling:=s[n.Parent.Children[i-1].Properties.Id]
39self.Y+=sibling.Height40self.X = copyOfX41xCollect = copyOfX42 } elseifi > 0 {
43fmt.Println(n.Properties.Id, n.InnerText, "did not break", xCollect, self.X, self.Width, parent.Width)
44self.X+=xCollect45fmt.Println(self.X)
46 }
47break48 } elseifvState.X+vState.Width > parent.Width+copyOfX&&i > 0 {
49xCollect = copyOfX50 } else {
51xCollect+=vState.Width+vState.X52ifvState.X+vState.Width+xCollect > parent.Width+parent.X {
53// If the elements are on the same line add the width of the elemenet
54ifi > 0 {
55sibling:=s[n.Parent.Children[i-1].Properties.Id]
56// !ISSUE: Commenting this out my help but can't decide
57ifn.Parent.Children[i-1].Style["display"] !="inline" {
58self.Y+=sibling.Height59 }
60 }
61// !ISSUE: when not added and just set equal it shift one that collides but when added it breaks the line everytime
62ifcolliderDetection(vState, self) {
63xCollect+=vState.Width64 } else {
65xCollect = 066 }
67 }
68 }
69 }
70 }
71propagateOffsets(n, copyOfX, copyOfY, self, state)
72 (*state)[n.Properties.Id] = self73 },
74 }
75}
7677funcpropagateOffsets(n*element.Node, copyOfX, copyOfYfloat32, selfelement.State, state*map[string]element.State) {
78s:=*state79for_, v:=rangen.Children {
80vState:=s[v.Properties.Id]
81vState.X+=self.X-copyOfX82vState.Y+=self.Y-copyOfY83if len(v.Children) > 0 {
84propagateOffsets(&v, copyOfX, copyOfY, self, state)
85 }
86 (*state)[v.Properties.Id] = vState87 }
88}
8990funccolliderDetection(s1, s2element.State) bool {
91s1Min:=s1.Y92s1Max:=s1.Y+s1.Height93s2Min:=s2.Y94s2Max:=s2.Y+s2.Height95returns1Min > s2Min&&s1Min < s2Max||s1Max > s2Min&&s1Min < s2Max||s2Min > s1Min&&s2Min < s1Max||s2Max > s1Min&&s2Min < s1Max96}