Skip to content

Commit

Permalink
Merge pull request #55 from x8b/patch-1
Browse files Browse the repository at this point in the history
Fixed Circle Y Position
  • Loading branch information
vikmeup committed Apr 27, 2015
2 parents 665928d + 4f9fff8 commit 1288606
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/SCLAlertView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public class SCLAlertView: UIViewController {
let kCircleBackgroundTopPosition: CGFloat = -15.0
let kCircleHeight: CGFloat = 56.0
let kCircleIconHeight: CGFloat = 20.0
let kTitleTop:CGFloat = 24.0
let kTitleTop:CGFloat = 30.0
let kTitleHeight:CGFloat = 40.0
let kWindowWidth: CGFloat = 240.0
var kWindowHeight: CGFloat = 178.0
Expand Down Expand Up @@ -175,7 +175,7 @@ public class SCLAlertView: UIViewController {
contentView.frame = CGRect(x:x, y:y, width:kWindowWidth, height:kWindowHeight)
y -= kCircleHeightBackground * 0.6
x = (sz.width - kCircleHeightBackground) / 2
circleBG.frame = CGRect(x:x, y:y, width:kCircleHeightBackground, height:kCircleHeightBackground)
circleBG.frame = CGRect(x:x, y:y+6, width:kCircleHeightBackground, height:kCircleHeightBackground)
// Subtitle
y = kTitleTop + kTitleHeight
viewText.frame = CGRect(x:12, y:y, width: kWindowWidth - 24, height:kTextHeight)
Expand Down

0 comments on commit 1288606

Please sign in to comment.