Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed Unable to Remove Thumb Image in Slider Control #26129

Closed
wants to merge 6 commits into from

Conversation

NirmalKumarYuvaraj
Copy link
Contributor

@NirmalKumarYuvaraj NirmalKumarYuvaraj commented Nov 26, 2024

Issue Details:

Editor's width and height is not updated when changing the device orientation from landscape to portrait.

Root Cause:

We updated ThumbImageSource is not null to the native view of Slider. So it fails to update if ThumbImageSource is null to native view(uiSlider) on SliderExtensions class.

Description of Change:

I initially stored the seekBar.Thumb in the defaultDrawable property. When a custom image is set to the ThumbImageSource property, the seekBar.Thumb becomes a BitmapDrawable. After setting null to the ThumbImageSource property, I updated seekBar.Thumb with the value from the defaultDrawable property.

Tested the behavior in the following platforms.

  • Android
  • Windows
  • iOS
  • Mac

Reference:

N/A

Issues Fixed:

Fixes #25939

Screenshots

Before Issue Fix After Issue Fix

@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label Nov 26, 2024
Copy link
Contributor

@jsuarezruiz jsuarezruiz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could be related or fixing the same as #26085?

Reverted the fix for iOS platform.
@NirmalKumarYuvaraj
Copy link
Contributor Author

This fix is similar to #26085. Hence closing the PR.

@NirmalKumarYuvaraj NirmalKumarYuvaraj added the partner/syncfusion Issues / PR's with Syncfusion collaboration label Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-controls-slider Slider community ✨ Community Contribution partner/syncfusion Issues / PR's with Syncfusion collaboration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Android, IOS, Mac] Unable to Remove Thumb Image in Slider Control
3 participants