mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-08 01:53:25 +02:00
Fixed scroll position
This commit is contained in:
@@ -4090,11 +4090,13 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||
int line = tvBody.getLayout().getLineForOffset(pos);
|
||||
int y = tvBody.getLayout().getLineTop(line);
|
||||
|
||||
int dy = Helper.dp2pixels(context, 48);
|
||||
|
||||
Rect rect = new Rect();
|
||||
tvBody.getDrawingRect(rect);
|
||||
((ViewGroup) itemView).offsetDescendantRectToMyCoords(tvBody, rect);
|
||||
|
||||
properties.scrollTo(apos, rect.top + y);
|
||||
properties.scrollTo(apos, rect.top + y - dy);
|
||||
} catch (Throwable ex) {
|
||||
Log.e(ex);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user