public override LayoutQuery OptimizedUsingExample(SpecificLayout example) { MinWidth_LayoutQuery result = this; if (this.MaxWidth > example.Width) { result = this.Clone((MinWidth_LayoutQuery)null); result.setMaxWidth(example.Width); } return(result); }
public override LayoutQuery OptimizedPastDimensions(LayoutDimensions example) { MinWidth_LayoutQuery result = this; double newWidth = example.Width * 0.9999999999; if (this.MaxWidth > newWidth) { result = this.Clone((MinWidth_LayoutQuery)null); result.setMaxWidth(newWidth); if (!result.Accepts(result.ProposedSolution_ForDebugging)) { result.ProposedSolution_ForDebugging = null; } } return(result); }