Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Fix/10829 Duration Picker Auto Scroll #5047

Merged

Conversation

puneetmahali1
Copy link
Contributor

@puneetmahali1 puneetmahali1 commented Feb 13, 2023

Description

Auto Scroll was missing on header tap on event duration picker and increase the auto scroll length

Link to Jira

https://jira-ibs.wbs.net.sap/browse/EXPOSUREAPP-10829

Screenshots

EXPOSUREAPP-10829.mov

Recording for Bigger Screen

EXPOSUREAPP-10829.Bigger.Screen.mov

@puneetmahali1 puneetmahali1 added the bug Something isn't working label Feb 13, 2023
@puneetmahali1 puneetmahali1 added this to the v3.2.0 milestone Feb 13, 2023
@puneetmahali1 puneetmahali1 requested a review from a team February 13, 2023 19:56
@naveeddotio
Copy link
Contributor

naveeddotio commented Feb 15, 2023

Hey @puneetmahali1 since there are many hard coded values, could you also verify it for bigger sized devices and share the recording too? Thanks

@puneetmahali1
Copy link
Contributor Author

Hey @puneetmahali1 since there are many hard coded values, could you also verify it for bigger sized devices and share the recording too? Thanks

@naveeddotio: Sure, I have attached the bigger screen recording(iPhone 14 Pro max) there we don't need the auto scroll as we can see the picker view without it.

// If iPhone resolution height is less than or equal to 844 then the screen will auto scroll to see the event duration picker
// if the height is more than 844 then user can see the event duration picker without auto scroll.
// For screen resolution please see more details on: https://www.ios-resolution.com/
if !viewModel.temporaryDefaultLengthPickerIsHidden && UIScreen.main.bounds.size.height <= 667 {
Copy link
Contributor

Choose a reason for hiding this comment

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

Your solution is fixing the bug.

From the code base, I would prefer a common Helper class for device bounds (device resolutions).
Similar to that /~https://github.com/anatoliyv/AssistantKit

But at the moment your solution is fine for me

@puneetmahali1 puneetmahali1 merged commit c1481d9 into release/3.2.x Feb 16, 2023
@puneetmahali1 puneetmahali1 deleted the fix/10829-broken-layout-for-duration-picker branch February 16, 2023 09:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants