     }
     
     private func updateHeight() {
-        let calculatedHeight = self.statusLabel.frame.size.height + Drop.statusBarHeight() + statusTopMargin + statusBottomMargin
-        heightConstraint.constant = calculatedHeight > minimumHeight ? calculatedHeight : minimumHeight
+        var height: CGFloat = 0.0
+        height += UIApplication.sharedApplication().statusBarFrame.height
+        height += statusTopMargin
+        height += statusLabel.frame.size.height
+        height += statusBottomMargin
+        heightConstraint.constant = height > minimumHeight ? height : minimumHeight
         self.layoutIfNeeded()
     }
 }

        }
    }
}

extension Drop {
    private class func statusBarHeight() -> CGFloat {
        return UIApplication.sharedApplication().statusBarFrame.size.height
    }
}

    private var heightConstraint: NSLayoutConstraint!
    private let statusTopMargin: CGFloat = 10.0
    private let statusBottomMargin: CGFloat = 10.0
    private var minimumHeight: CGFloat { return UIApplication.sharedApplication().statusBarFrame.height + 44.0 }
    private var upTimer: NSTimer?
    private var startTop: CGFloat?
    
