Diff
diff --git a/cstyle/plugins/inline/main.go b/cstyle/plugins/inline/main.go
index 9d4b575..deabe87 100644
--- a/cstyle/plugins/inline/main.go
+++ b/cstyle/plugins/inline/main.go
@@ -15 +15 @@ func Init() cstyle.Plugin {
- copyOfX := n.Properties.X
+ copyOfX := n.X
@@ -17,4 +17,4 @@ func Init() cstyle.Plugin {
- if v.Properties.Id == n.Properties.Id {
- if n.Properties.X+n.Properties.Width-2 > n.Parent.Properties.Width+copyOfX && i > 0 {
- n.Properties.Y += float32(n.Parent.Children[i-1].Properties.Height)
- n.Properties.X = copyOfX
+ if v.Id == n.Id {
+ if n.X+n.Width-2 > n.Parent.Width+copyOfX && i > 0 {
+ n.Y += float32(n.Parent.Children[i-1].Height)
+ n.X = copyOfX
@@ -24,3 +24,3 @@ func Init() cstyle.Plugin {
- if n.Parent.Children[i-1].Properties.Text.X+n.Properties.Text.Width < int(n.Parent.Children[i-1].Properties.Width) {
- n.Properties.Y -= float32(n.Parent.Children[i-1].Properties.Text.LineHeight)
- n.Properties.X += float32(n.Parent.Children[i-1].Properties.Text.X)
+ if n.Parent.Children[i-1].Text.X+n.Text.Width < int(n.Parent.Children[i-1].Width) {
+ n.Y -= float32(n.Parent.Children[i-1].Text.LineHeight)
+ n.X += float32(n.Parent.Children[i-1].Text.X)
@@ -32 +32 @@ func Init() cstyle.Plugin {
- n.Properties.X += v.Properties.Width
+ n.X += v.Width
@@ -34 +34 @@ func Init() cstyle.Plugin {
- n.Properties.X = copyOfX
+ n.X = copyOfX