From d1e39508939e9f7519af3dc5981920063fb96b41 Mon Sep 17 00:00:00 2001
From: echicken <>
Date: Sun, 15 Apr 2018 05:00:01 +0000
Subject: [PATCH] Scroll up one more line when on row zero to reveal the
 collection title. (Not the best fix, but it'll do for now.)

---
 exec/avatar_chooser.js | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/exec/avatar_chooser.js b/exec/avatar_chooser.js
index 055fa18b8a..a401099ecf 100644
--- a/exec/avatar_chooser.js
+++ b/exec/avatar_chooser.js
@@ -189,10 +189,11 @@ function CollectionBrowser(filename, parent_frame) {
 		// Actual x, y coordinates of avatar graphic within frames.container
 		var x = 1 + (col * avatar_lib.defs.width) + (2 * col);
 		var y = 2 + (row * avatar_lib.defs.height) + (2 * row);
+        var sy = row == 0 ? y - 2 : (y - 1);
 		if (y - 1 + avatar_lib.defs.height + 3 > frames.container.height) {
-			frames.container.scrollTo(0, y - 1);
+			frames.container.scrollTo(0, sy);
 		} else if (y - 1 < frames.container.offset.y) {
-			frames.container.scrollTo(0, y - 1);
+			frames.container.scrollTo(0, sy);
 		}
 		frames.highlight.moveTo(frames.container.x + x - 1, frames.container.y + y - 1 - frames.container.offset.y);
 	}
-- 
GitLab