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); }
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); }