         addGestureRecognizer(UITapGestureRecognizer(target: self, action: #selector(cancelHandler(g:))));
         mainView.isUserInteractionEnabled = true;
         mainView.addGestureRecognizer(UITapGestureRecognizer(target: self, action: #selector(cancelHandler(g:))));
-        
+
         if let originalView = originalView {
             frame = originalView.frame ;
-            self.stretchUp(-self.frame.size.height);
+            self.stretchUp(-(originalView.frame.size.height));
             mainView.fillParent();
         }
         
         UIView.animate(withDuration: 1, animations: {
             self.fillParent();
-            self.mainView.alignParentTopBy(.moving, margin: 100);
+            self.mainView.alignParentTopBy(.moving, margin: self.originalView?.frame.maxY ?? 0.0);
             self.mainView.stretchHorizontallyToFillParentWithMargin(inView.frame.width * 0.08);
-            self.mainView.setHeight(200);
+            self.mainView.setHeightOfParent(0.85);
             self.alpha = 1.0;
         })
     }

        super.init(frame:frame);
        
        addSubview(mainView);
        
        backgroundColor = UIColor.white.withAlphaComponent(0.7);
        alpha=0.0;
    }

    
    override public func layoutSubviews() {
        super.layoutSubviews();
        mainView.layer.borderColor = darkBackgroundColor.cgColor;
        mainView.layer.borderWidth = 2.0;        
        
        guard let delegate = delegate else { return; }
        
        let numberOfColumns = delegate.numberOfColumnsForMultiPicker(multiPicker: self);

        if(scrollViews.count != numberOfColumns){
            let columnWidth = CGFloat(mainView.frame.width/CGFloat(numberOfColumns));
            
            for columnIndex in 0..<numberOfColumns{
                let newScrollView = UIScrollView(frame:mainView.frame);
                mainView.addSubview(newScrollView);
                newScrollView.setWidth(columnWidth);
                newScrollView.backgroundColor = lightBackgroundColor;
                newScrollView.alignParentLeftBy(.moving, margin:columnWidth * CGFloat(columnIndex));
                newScrollView.alignParentTopBy(.moving);

                newScrollView.delegate = self;
                
