Fix scrollbar offset on wide screens while preserving limited width design #498
+1
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
On wide screens (≥820dp) such as tablets or phones in landscape, the applications list scrollbar appears 64dp from the edge, particularly noticeable after screen rotation.
Changes
android:clipToPadding="false"to rootRelativeLayoutinmain.xmlTechnical Details
The root layout applies
activity_horizontal_margin(64dp on ≥820dp screens, 0dp otherwise) to provide limited width content on large screens. However, this padding also affected the scrollbar position, causing it to render 64dp from the edge.By adding
clipToPadding="false", child views can now draw outside the padding area:This preserves the intended UX of limited width content on large screens while fixing the scrollbar offset issue.
Original prompt
<issue_description>Do you use TrackerControl from Google Play/F-Droid/other?
TC 1.22.0 from F-droid
Describe the bug
Sometimes the scrollbar can end up farther than screen border, same at the left as if there was added margin on both sides.
To Reproduce
As I saw this happening after some screen rotation I thought it was the cause of the issue, but as I tried to reproduce the issue quite some time by rotating my screen in various ways but was unable to reproduce it, so either it's not the source of the issue, either it's not a 100% repro rate and there's some kind of corner case situation.
See joined screenshot I took when this happened.
</issue_description>
Comments on the Issue (you are @copilot in this section)
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.