Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Pod/Classes/STRatingControl.swift
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ open class STRatingControl: UIView {
return Int(self.frame.height)
}
fileprivate var width : Int {
return (buttonSize + spacing) * maxRating
return buttonSize * maxRating + spacing * max(0, maxRating - 1)
}

// MARK: Initialization
Expand Down
2 changes: 1 addition & 1 deletion STRatingControl.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = "STRatingControl"
s.version = "1.1.0"
s.version = "1.1.1"
s.summary = "STRatingControl is a UI control that represent the star rating control."

# This description is used to generate tags and improve search results.
Expand Down