         } else {
             originalNode.style.spacingAfter = outsideInsets.right / 2
         }
-        let horizontalStackSpec = ASStackLayoutSpec(direction: .horizontal, spacing: insideInsets.right, justifyContent: .start, alignItems: .center, children: children)
+        let horizontalStackSpec = ASStackLayoutSpec(direction: .horizontal, spacing: spacingBeforeRight, justifyContent: .start, alignItems: .center, children: children)
         return ASInsetLayoutSpec(insets: UIEdgeInsets(top: outsideInsets.top, left: outsideInsets.left, bottom: outsideInsets.bottom, right: 0), child: horizontalStackSpec)
     }
     

        self.style.flexShrink = 1.0
    }
    
    override open func becomeFirstResponder() -> Bool {
        return self.nodeView.becomeFirstResponder()
    }
    
    override open func resignFirstResponder() -> Bool {
        return self.nodeView.resignFirstResponder()
    }
    
    public func appendValidation(_ block: @escaping () -> Bool) {
        _appendedValidation = block


    public let originalNode: DLSimpleTextFieldNode
    public var rightButtonNode: ASButtonNode?
    public var spacingBeforeRight: CGFloat = 0
    
    public var insideInsets: UIEdgeInsets {
        get {
