Skip to content

Commit

Permalink
FIX: fixed layout bug of account select field
Browse files Browse the repository at this point in the history
  • Loading branch information
muradtries committed Sep 16, 2024
1 parent 6c77e1e commit 3690dcd
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"images" : [
{
"filename" : "Vector (Stroke).pdf",
"filename" : "ic-chevron-down.svg",
"idiom" : "universal"
}
],
Expand Down
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 4 additions & 2 deletions Sources/PashaKit/PBSelectField/PBAccountSelectField.swift
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ open class PBAccountSelectField: UIView {
NSLayoutConstraint.activate([
self.placeholderLabel.leftAnchor.constraint(equalTo: self.customBorder.leftAnchor, constant: 16.0),
self.placeholderLabel.centerYAnchor.constraint(equalTo: self.leftIconView.centerYAnchor),
self.placeholderLabel.rightAnchor.constraint(equalTo: self.dropdownIcon.leftAnchor, constant: -12.0)
self.placeholderLabel.rightAnchor.constraint(lessThanOrEqualTo: self.dropdownIcon.leftAnchor, constant: -12.0)
])

NSLayoutConstraint.activate([
Expand All @@ -244,7 +244,9 @@ open class PBAccountSelectField: UIView {

NSLayoutConstraint.activate([
self.dropdownIcon.rightAnchor.constraint(equalTo: self.customBorder.rightAnchor, constant: -16.0),
self.dropdownIcon.centerYAnchor.constraint(equalTo: self.leftIconView.centerYAnchor)
self.dropdownIcon.centerYAnchor.constraint(equalTo: self.leftIconView.centerYAnchor),
self.dropdownIcon.widthAnchor.constraint(equalToConstant: 24.0),
self.dropdownIcon.heightAnchor.constraint(equalToConstant: 24.0),
])

NSLayoutConstraint.activate([
Expand Down

0 comments on commit 3690dcd

Please sign in to comment.