[gnome-characters/bilelmoussaoui/gtk4: 58/71] baseline fix




commit 7bfbde0222a626eb5379a73da9af7dbfd45db683
Author: Bilal Elmoussaoui <bil elmoussaoui gmail com>
Date:   Wed Nov 24 19:35:05 2021 +0100

    baseline fix

 src/charactersView.js | 2 +-
 src/window.js         | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/charactersView.js b/src/charactersView.js
index 61a2500..c049383 100644
--- a/src/charactersView.js
+++ b/src/charactersView.js
@@ -447,7 +447,7 @@ var CharactersView = GObject.registerClass({
     searchByCategory(category) {
         this._characters = [];
         // whether to draw a baseline or not
-        this.baseline = category >= Gc.Category.NONE && category < Gc.Category.EMOJI;
+        this.baseline = category <= Gc.Category.LETTER_LATIN;
 
         if (category === Gc.Category.LETTER_LATIN) {
             if (!this._scriptsLoaded)
diff --git a/src/window.js b/src/window.js
index 7417af6..d17b808 100644
--- a/src/window.js
+++ b/src/window.js
@@ -257,6 +257,8 @@ var MainWindow = GObject.registerClass({
 
     setPage(pageRow) {
         if (pageRow.name === 'recent') {
+            // always draw a baseline for recent view
+            this._charactersView.baseline = true;
             if (this.recentCharacters.length === 0) {
                 this._mainStack.visible_child_name = 'empty-recent';
             } else {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]