Exemple #1
0
 public override Vector2 GetSizeToDisplay(Rect displayArea)
 {
     return(myCellView.GetSizeToDisplay(displayArea));
 }
 public override Vector2 GetSizeToDisplay(Rect frameArea)
 {
     return(myMainView.GetSizeToDisplay(frameArea));
 }
Exemple #3
0
        // ---------------------------------------------------------------------------------
        /// Resizes the editor panel to fit the content.
        void ResizeToFit()
        {
            var displaySize = myMainView.GetSizeToDisplay(position);

            position = new Rect(position.x, position.y, displaySize.x, displaySize.y);
        }