 
 import UIKit
 
+/**
+Base class for drawer buttons (can be overriden). Implements resizing based on how much the scrollView in T2GCell is opened.
+*/
 class T2GCellDrawerButton: T2GColoredButton {
     var minOriginCoord: CGPoint?
     var maxOriginCoord: CGPoint? {

        self.minOriginCoord = frame.origin
    }
    
    func setup() {
        self.setTitle("\(self.tag - T2GViewTags.cellDrawerButtonConstant.rawValue + 1)", forState: UIControlState.Normal)
    }
    
    func resize(tailPosition: CGFloat, sizeDifference: CGFloat) {
        let size = self.frame.size.width
        
        let didBeginOverlapping = tailPosition < self.frame.origin.x + (size - 4)
        let isStillOverlapping = tailPosition > self.frame.origin.x
        

        }
    }
    
    /**
    Overriden initializer that serves for setting up initial values of minSize and minOriginCoord (that serves for calculated property maxOriginCoord).
    
    :param: frame Default Cocoa API - The frame rectangle, which describes the view’s location and size in its superview’s coordinate system.
    */
    override init(frame: CGRect) {
        super.init(frame: frame)
        
