Exemplo n.º 1
0
        public override LayoutQuery OptimizedUsingExample(SpecificLayout example)
        {
            MinHeight_LayoutQuery result = this;

            if (this.MaxHeight > example.Height)
            {
                result = this.Clone((MinHeight_LayoutQuery)null);
                result.setMaxHeight(example.Height);
            }
            return(result);
        }
Exemplo n.º 2
0
        public override LayoutQuery OptimizedPastDimensions(LayoutDimensions example)
        {
            MinHeight_LayoutQuery result = this;
            double newHeight             = example.Height * 0.9999999999;

            if (this.MaxHeight > newHeight)
            {
                result = this.Clone((MinHeight_LayoutQuery)null);
                result.setMaxHeight(newHeight);
                if (!result.Accepts(result.ProposedSolution_ForDebugging))
                {
                    result.ProposedSolution_ForDebugging = null;
                }
            }
            return(result);
        }