summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.iOS
diff options
context:
space:
mode:
authoradrianknight89 <adrianknight89@outlook.com>2016-12-28 23:15:45 (GMT)
committerE.Z. Hart <hartez@users.noreply.github.com>2016-12-28 23:15:45 (GMT)
commit4ea528643e8c23c8cde47d312665c6fe08701d6d (patch)
tree819c77248ef61653c2309b5aa39bb30b3c4b8312 /Xamarin.Forms.Platform.iOS
parentc1d83aacba24f35f056be5b7e792096650d9b7be (diff)
downloadxamarin-forms-4ea528643e8c23c8cde47d312665c6fe08701d6d.zip
xamarin-forms-4ea528643e8c23c8cde47d312665c6fe08701d6d.tar.gz
xamarin-forms-4ea528643e8c23c8cde47d312665c6fe08701d6d.tar.bz2
fix nre when changing content in datepickerselected (#494)
Diffstat (limited to 'Xamarin.Forms.Platform.iOS')
-rw-r--r--Xamarin.Forms.Platform.iOS/Renderers/PickerRenderer.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Xamarin.Forms.Platform.iOS/Renderers/PickerRenderer.cs b/Xamarin.Forms.Platform.iOS/Renderers/PickerRenderer.cs
index 5a7fa22..169ac3e 100644
--- a/Xamarin.Forms.Platform.iOS/Renderers/PickerRenderer.cs
+++ b/Xamarin.Forms.Platform.iOS/Renderers/PickerRenderer.cs
@@ -108,9 +108,9 @@ namespace Xamarin.Forms.Platform.iOS
if (Element != null)
{
var oldText = Control.Text;
- ElementController.SetValueFromRenderer(Picker.SelectedIndexProperty, s.SelectedIndex);
Control.Text = s.SelectedItem;
UpdatePickerNativeSize(oldText);
+ ElementController.SetValueFromRenderer(Picker.SelectedIndexProperty, s.SelectedIndex);
}
}