minor changes
This commit is contained in:
parent
9a5ef15779
commit
c0842d7740
@ -18,10 +18,14 @@ import Foundation
|
|||||||
let rightDropDown = ItemDropdownEntryField()
|
let rightDropDown = ItemDropdownEntryField()
|
||||||
var stack: Stack<StackModel>
|
var stack: Stack<StackModel>
|
||||||
|
|
||||||
|
//-------------------------------------------------------
|
||||||
|
// MARK: - Initializers
|
||||||
|
//-------------------------------------------------------
|
||||||
|
|
||||||
public override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
|
public override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
|
||||||
stack = Stack<StackModel>.createStack(with: [(view: leftDropDown, model: StackItemModel(percent: 50, horizontalAlignment: .leading)),
|
stack = Stack<StackModel>.createStack(with: [(view: leftDropDown, model: StackItemModel(percent: 50, horizontalAlignment: .leading)),
|
||||||
(view: rightDropDown, model: StackItemModel(percent: 50, horizontalAlignment: .leading))],
|
(view: rightDropDown, model: StackItemModel(percent: 50, horizontalAlignment: .trailing))],
|
||||||
axis: .horizontal)
|
axis: .horizontal,spacing: 10)
|
||||||
super.init(style: style, reuseIdentifier: reuseIdentifier)
|
super.init(style: style, reuseIdentifier: reuseIdentifier)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -37,9 +41,9 @@ import Foundation
|
|||||||
addMolecule(stack)
|
addMolecule(stack)
|
||||||
stack.restack()
|
stack.restack()
|
||||||
}
|
}
|
||||||
//----------------------------------------------------
|
//----------------------------------------------------
|
||||||
// MARK: - Molecule
|
// MARK: - Molecule
|
||||||
//------------------------------------------------------
|
//------------------------------------------------------
|
||||||
|
|
||||||
override open func reset() {
|
override open func reset() {
|
||||||
super.reset()
|
super.reset()
|
||||||
@ -52,7 +56,10 @@ import Foundation
|
|||||||
guard let model = model as? ListTwoColumnDropdownSelectorsModel else { return}
|
guard let model = model as? ListTwoColumnDropdownSelectorsModel else { return}
|
||||||
leftDropDown.set(with:model.leftDropDown, delegateObject, additionalData)
|
leftDropDown.set(with:model.leftDropDown, delegateObject, additionalData)
|
||||||
rightDropDown.set(with:model.rightDropDown, delegateObject, additionalData)
|
rightDropDown.set(with:model.rightDropDown, delegateObject, additionalData)
|
||||||
|
}
|
||||||
|
|
||||||
|
open override class func estimatedHeight(with model: MoleculeModelProtocol, _ delegateObject: MVMCoreUIDelegateObject?) -> CGFloat {
|
||||||
|
return 121
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -10,12 +10,11 @@ import Foundation
|
|||||||
|
|
||||||
public class ListTwoColumnDropdownSelectorsModel: ListItemModel, MoleculeModelProtocol {
|
public class ListTwoColumnDropdownSelectorsModel: ListItemModel, MoleculeModelProtocol {
|
||||||
|
|
||||||
public var divider: LineModel?
|
|
||||||
public static var identifier: String = "list2CDrpDrp1"
|
public static var identifier: String = "list2CDrpDrp1"
|
||||||
public var leftDropDown: ItemDropdownEntryFieldModel
|
public var leftDropDown: ItemDropdownEntryFieldModel
|
||||||
public var rightDropDown: ItemDropdownEntryFieldModel
|
public var rightDropDown: ItemDropdownEntryFieldModel
|
||||||
|
|
||||||
/// Defaults to set
|
// Defaults to set
|
||||||
override public func setDefaults() {
|
override public func setDefaults() {
|
||||||
if useHorizontalMargins == nil {
|
if useHorizontalMargins == nil {
|
||||||
useHorizontalMargins = true
|
useHorizontalMargins = true
|
||||||
@ -23,11 +22,11 @@ public class ListTwoColumnDropdownSelectorsModel: ListItemModel, MoleculeModelPr
|
|||||||
if useVerticalMargins == nil {
|
if useVerticalMargins == nil {
|
||||||
useVerticalMargins = true
|
useVerticalMargins = true
|
||||||
}
|
}
|
||||||
if topMarginPadding == nil {
|
if topPadding == nil {
|
||||||
topMarginPadding = 24
|
topPadding = 20
|
||||||
}
|
}
|
||||||
if bottomMarginPadding == nil {
|
if bottomPadding == nil {
|
||||||
bottomMarginPadding = 0
|
bottomPadding = 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user