From bbb1901be4a711fc1f3f2fb34aea664c6589e60e Mon Sep 17 00:00:00 2001 From: "Pfeil, Scott Robert" Date: Tue, 18 Jun 2019 13:35:48 -0400 Subject: [PATCH] remove space --- MVMCoreUI/Molecules/MoleculeStackView.swift | 2 +- MVMCoreUI/Styles/usage.json | 108 ++++++++++++++++++++ 2 files changed, 109 insertions(+), 1 deletion(-) create mode 100644 MVMCoreUI/Styles/usage.json diff --git a/MVMCoreUI/Molecules/MoleculeStackView.swift b/MVMCoreUI/Molecules/MoleculeStackView.swift index 4a365154..7c72cf09 100644 --- a/MVMCoreUI/Molecules/MoleculeStackView.swift +++ b/MVMCoreUI/Molecules/MoleculeStackView.swift @@ -44,7 +44,7 @@ public class MoleculeStackView: ViewConstrainingView { var axis: NSLayoutConstraint.Axis = .vertical { didSet { updateViewHorizontalDefaults = axis == .horizontal - if axis != oldValue { + if axis != oldValue { restack() } } diff --git a/MVMCoreUI/Styles/usage.json b/MVMCoreUI/Styles/usage.json new file mode 100644 index 00000000..0f6ee862 --- /dev/null +++ b/MVMCoreUI/Styles/usage.json @@ -0,0 +1,108 @@ +{ +"pageType": "usage", +"template": "moleculeList", +"header": { + "moleculeName":"header", + "headline":{ + "moleculeName": "label", + "text":"See who's using what." +}, +"body":{ + "moleculeName": "label", + "text":"Data usage was estimated as of Jun 11." +}, +"molecules": [{ + "moleculeName": "listItem", + "molecule" : { + "moleculeName":"moleculeStack", + "axis": "horizontal", + "molecules": [{ + "percent": 60, + "molecule": { + "moleculeName": "label", + "text": "Johny Verizon\n555.555.5555\nGo Unlimited", + "attributes": [{ + "location": 0, + "length": 13, + "type": "font", + "style": "B1" + }] + } + },{ + "horizontalAlignment": "trailing", + "molecule": { + "moleculeName": "label", + "text": "4.55 GB" + } + }] + }, + "actionMap":{ + "actionType": "openPage", + "pageType": "usageDetails", + "extraParameters": { + "mdn": "5555555555" + } + }},{ + "moleculeName": "listItem", + "molecule" : { + "moleculeName":"moleculeStack", + "axis": "horizontal", + "molecules": [{ + "percent": 60, + "molecule": { + "moleculeName": "label", + "text": "Sree Verizon\n555.555.5556", + "attributes": [{ + "location": 0, + "length": 12, + "type": "font", + "style": "B1" + }] + } + },{ + "horizontalAlignment": "trailing", + "molecule": { + "moleculeName": "label", + "text": "0 GB" + } + }] + }, + "actionMap":{ + "actionType": "openPage", + "pageType": "usageDetails", + "extraParameters": { + "mdn": "5555555556" + } + }},{ + "moleculeName": "listItem", + "molecule" : { + "moleculeName":"moleculeStack", + "axis": "horizontal", + "molecules": [{ + "percent": 60, + "molecule": { + "moleculeName": "label", + "text": "Vishal Verizon\n555.555.5557\nGo Unlimited", + "attributes": [{ + "location": 0, + "length": 14, + "type": "font", + "style": "B1" + }] + } + },{ + "horizontalAlignment": "trailing", + "molecule": { + "moleculeName": "label", + "text": "0 GB" + } + }] + }, + "actionMap":{ + "actionType": "openPage", + "pageType": "usageDetails", + "extraParameters": { + "mdn": "5555555557" + } + }}] +} \ No newline at end of file