Habanero.Faces.Base.FlowLayoutManager.GetGluedControlToMoveToNewLineIfPossible C# (CSharp) Method

GetGluedControlToMoveToNewLineIfPossible() private method

private GetGluedControlToMoveToNewLineIfPossible ( int &controlNumber, IControlHabanero &ctl ) : void
controlNumber int
ctl IControlHabanero
return void
        private void GetGluedControlToMoveToNewLineIfPossible(ref int controlNumber, ref IControlHabanero ctl)
        {
            if (PreviousControlVisible(controlNumber) && BothControlsFitOnALine(controlNumber))
            {
                //Get the previous control as this is the one that this control is glued to
                //E.g. a label and this needs to get moved to the new line.
                controlNumber--;
                ctl = GetControl(controlNumber);
            }
        }