Xfx.Controls icon indicating copy to clipboard operation
Xfx.Controls copied to clipboard

MbAutoCompleteTextField.Draw() throws InvalidCastException when XfxComboBox is not contained in a ScrollView

Open alsed42 opened this issue 6 years ago • 0 comments

Bug

  • Version Number of Control: 1.1.3
  • Device Tested On:
  • Simulator Tested On: iPhone 8 iOS 12.1

Affects

  • [x] iOS
  • [ ] Android

Expected Behavior

XfxComboBox can be drawn successfully on iOS even if not contained inside a ScrollView.

Actual Behavior

InvalidCastException thrown at MbAutoCompleteTextField.Draw() if XfxComboBox is not contained inside a ScrollView and then the app crashes (see attached stacktrace).

XfxComboBox_InvalidCastException_Stacktrace.txt

Steps to reproduce the Behavior

  • Put a XfxComboBox on a XAML Page and make sure that none of the parent controls are a ScrollView or a control derived from ScrollView
  • Start the app in any iPhone device or simulator
  • Navigate to the page with the XfxComboBox

alsed42 avatar Nov 21 '18 18:11 alsed42