-
Notifications
You must be signed in to change notification settings - Fork 206
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
[Android] sticky title on TimetableGrid #1262
base: main
Are you sure you want to change the base?
[Android] sticky title on TimetableGrid #1262
Conversation
var displayedPosition by remember { mutableFloatStateOf(0f) } | ||
var itemHeight by remember { mutableIntStateOf(0) } | ||
var titleHeight by remember { mutableIntStateOf(0) } | ||
var timeHeight by remember { mutableIntStateOf(0) } | ||
var speakerHeight by remember { mutableIntStateOf(0) } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
theere are possibility that height of column composable for title, time speaker have a variety of values according to session name.
And it was difficult to use spacer to get a room of item (due to weight and so on).
so here, getting each height and calculating maxOffset
from these values.
@ked4ma Could you add a screenshot test to check it? 🙏 |
sure. |
Hi @ked4ma! Codes seem to be unformatted. To resolve this issue, please run |
Snapshot diff report
|
startY = visibleSize.height * 4F / 5, | ||
endY = visibleSize.height / 2F, | ||
startY = visibleSize.height * startRatio, | ||
endY = visibleSize.height * (startRatio - amount), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
enabled to pass a parameter for scrolling amount. (for this pr)
Issue
Overview (Required)
Links
Screenshot (Optional if screenshot test is present or unrelated to UI)
Movie (Optional)
Screen_recording_20230916_190405.webm
Screen_recording_20230916_190338.webm
Screen_recording_20230916_190046.webm
Screen_recording_20230916_190227.webm