Diff
diff --git a/cstyle/plugins/flex/main.go b/cstyle/plugins/flex/main.go
index cdfab3c..6ec66bf 100644
--- a/cstyle/plugins/flex/main.go
+++ b/cstyle/plugins/flex/main.go
@@ -7 +6,0 @@ import (
- "gui/utils"
@@ -10 +9 @@ import (
-func Init() cstyle.Plugin {
+func Plugin() cstyle.Plugin {
@@ -13 +12 @@ func Init() cstyle.Plugin {
- "display": "flex",
+ "display": "inline",
@@ -15 +14 @@ func Init() cstyle.Plugin {
- Level: 1,
+ Level: 0,
@@ -17,16 +16 @@ func Init() cstyle.Plugin {
-
- n.Width, _ = utils.ConvertToPixels("100%", n.EM, n.Parent.Width)
-
- fmt.Println(n.Id)
- siblings := n.Children
-
- fmt.Println(len(siblings))
-
- tW := float32(0)
- for _, v := range siblings {
- tW += v.Width
- }
- fmt.Println(n.Width, tW)
- for i, _ := range siblings {
- n.Children[i].X += ((n.Width - tW) / float32(len(siblings))) * float32(i)
- }
+ fmt.Println("hi")