question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Offset with custom scrollMin()

See original GitHub issue

#384 introduced a new bug. When overwriting getScrollMinY, using setMinimumScaleMode(ZoomPanLayout.MinimumScaleMode.FIT) and setting the scale to 0 setScale(0.0f) the content is shifted down or upwards with negative or positive value, respectively. I illustrated it with a modified demo in my showcase#415 branch

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
p-lrcommented, May 23, 2017

Now i need to make a PR, so it goes into the next release.

1reaction
p-lrcommented, May 21, 2017

My understanding so far is that the constrained scrollY logic isn’t appropriate when the minimum scrollY is negative. I will try to finish the job this week.

Read more comments on GitHub >

github_iconTop Results From Across the Web

scrollIntoView Scrolls just too far - Stack Overflow
Smooth scroll to the proper position. Here is better answer for the most cases. It uses scroll-margin and scroll-padding CSS rules.
Read more >
Custom Scrollbars In CSS - Ahmad Shadeed
In this example, we want the scrollbar thumb to have an offset from all sides. Since it's not possible to use padding with...
Read more >
scroll-margin - CSS: Cascading Style Sheets - MDN Web Docs
The scroll-margin shorthand property sets all of the scroll margins of an element at once, assigning values much like the margin property ...
Read more >
Element size and scrolling - The Modern JavaScript Tutorial
Element size and scrolling · offsetWidth = 390 – the outer width, can be calculated as inner CSS-width ( 300px ) plus paddings...
Read more >
Perfect Scrollbar
Minimalistic but perfect custom scrollbar plugin. ... href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css" rel="stylesheet"> <!
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found