From e2933982df78d3db5d9c2842a9839297a569d6b3 Mon Sep 17 00:00:00 2001 From: Hampus Adolfsson Date: Mon, 5 Dec 2022 17:56:49 +0100 Subject: [PATCH] Fix input validation for range property inputs --- .../PropertyInput/FloatRangePropertyInputView.axaml | 4 ++-- .../PropertyInput/IntRangePropertyInputView.axaml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Artemis.UI/DefaultTypes/PropertyInput/FloatRangePropertyInputView.axaml b/src/Artemis.UI/DefaultTypes/PropertyInput/FloatRangePropertyInputView.axaml index 07d3faeab..ad358c205 100644 --- a/src/Artemis.UI/DefaultTypes/PropertyInput/FloatRangePropertyInputView.axaml +++ b/src/Artemis.UI/DefaultTypes/PropertyInput/FloatRangePropertyInputView.axaml @@ -13,8 +13,8 @@ Value="{CompiledBinding Start}" Prefix="{CompiledBinding Prefix}" Suffix="{CompiledBinding Affix}" - Minimum="{CompiledBinding End}" - Maximum="{CompiledBinding Max}" + Minimum="{CompiledBinding Min}" + Maximum="{CompiledBinding End}" LargeChange="{Binding LayerProperty.PropertyDescription.InputStepSize}" SimpleNumberFormat="F3" VerticalAlignment="Center" diff --git a/src/Artemis.UI/DefaultTypes/PropertyInput/IntRangePropertyInputView.axaml b/src/Artemis.UI/DefaultTypes/PropertyInput/IntRangePropertyInputView.axaml index 512006830..96ded4c7c 100644 --- a/src/Artemis.UI/DefaultTypes/PropertyInput/IntRangePropertyInputView.axaml +++ b/src/Artemis.UI/DefaultTypes/PropertyInput/IntRangePropertyInputView.axaml @@ -13,8 +13,8 @@ Value="{CompiledBinding Start}" Prefix="{CompiledBinding Prefix}" Suffix="{CompiledBinding Affix}" - Minimum="{CompiledBinding End}" - Maximum="{CompiledBinding Max}" + Minimum="{CompiledBinding Min}" + Maximum="{CompiledBinding End}" LargeChange="{Binding LayerProperty.PropertyDescription.InputStepSize}" SimpleNumberFormat="F3" VerticalAlignment="Center"