 		ignoresScrollViewDidScroll += 1
 		defer { ignoresScrollViewDidScroll -= 1 }
 
-		let viewBounds = view.bounds
+		let bounds = view.bounds
 		let viewControllers = self.viewControllers
 		var contentOffset: CGPoint
 		let layoutsExistingChildren: Bool
 
-		let previousViewSize = self.lastLayoutedViewSize
-		if forcesLayoutUpdate || viewBounds.size != previousViewSize {
-			self.lastLayoutedViewSize = viewBounds.size
+		let previousViewSize = lastLayoutedSizeForChildren
+		if forcesLayoutUpdate || bounds.size != lastLayoutedSizeForChildren {
+			lastLayoutedSizeForChildren = bounds.size
 
 			layoutChildContainer()
 

				}

				if let closestChildIndex = closestChildIndex {
					newContentOffset = CGPoint(left: (CGFloat(closestChildIndex) - closestChildOffset) * viewBounds.width, top: 0)
				}
				else if let primaryViewController = primaryViewController, let index = viewControllers.indexOfIdentical(primaryViewController) {
					newContentOffset = CGPoint(left: (CGFloat(index) * viewBounds.width), top: 0)
				}
			}


	public override func viewDidLayoutSubviewsWithAnimation(animation: Animation?) {
		super.viewDidLayoutSubviewsWithAnimation(animation)

		let bounds = view.bounds
		guard bounds.size != lastLayoutedSize else {
			return
		}

		lastLayoutedSize = bounds.size

		layoutChildrenForcingLayoutUpdate(false)
		updatePrimaryViewController()
	}

