         contentView.frame = frame
         container.frame = frame
 
-        let imageSize = CGFloat(OpenSearchEngine.PreferredIconSize)
         let imageX = (48 - imageSize) / 2
         let imageY = (frame.size.height - imageSize) / 2
         imageView!.frame = CGRectMake(imageX, imageY, imageSize, imageSize)

            let button = view as! UIButton
            var buttonSize = button.intrinsicContentSize()

            if height == 0 {
                height = buttonSize.height
            }

            var width = currentLeft + buttonSize.width + SearchViewControllerUX.SuggestionMargin

        // The maximum width of the container, after which suggestions will wrap to the next line.
        let maxWidth = contentView.frame.width

        let imageSize = CGFloat(OpenSearchEngine.PreferredIconSize)

        // The height of the suggestions container (minus margins), used to determine the frame.
        // We set it to imageSize.height as a minimum since we don't want the cell to be shorter than the icon
        var height: CGFloat = imageSize

        var currentLeft = textLeft
        var currentTop = SearchViewControllerUX.SuggestionCellVerticalPadding
