Digital ACT-191 ONEAPP-7958 story: adding a border to the collectionView instead of the CalendarBase.layer
This commit is contained in:
parent
8fb424bed9
commit
f30d416164
@ -158,15 +158,15 @@ open class CalendarBase: View {
|
||||
self.fetchDates(with: displayDate)
|
||||
}
|
||||
|
||||
layer.backgroundColor = backgroundColorConfiguration.getColor(self).cgColor
|
||||
containerView.layer.backgroundColor = backgroundColorConfiguration.getColor(self).cgColor
|
||||
if hideContainerBorder {
|
||||
layer.borderColor = nil
|
||||
layer.borderWidth = 0
|
||||
layer.cornerRadius = 0
|
||||
containerView.layer.borderColor = nil
|
||||
containerView.layer.borderWidth = 0
|
||||
containerView.layer.cornerRadius = 0
|
||||
} else {
|
||||
layer.borderColor = containerBorderColorConfiguration.getColor(self).cgColor
|
||||
layer.borderWidth = VDSFormControls.borderWidth
|
||||
layer.cornerRadius = VDSFormControls.borderRadius
|
||||
containerView.layer.borderColor = containerBorderColorConfiguration.getColor(self).cgColor
|
||||
containerView.layer.borderWidth = VDSFormControls.borderWidth
|
||||
containerView.layer.cornerRadius = VDSFormControls.borderRadius
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user