[gnome-shell/wip/carlosg/bottom-emoji-row-alignment: 2/2] keyboard: Add bottom emoji panel row to separate aspect container



commit bf48c1a0e1b2738c45d0489ac4634e19cf0e2f91
Author: Carlos Garnacho <carlosg gnome org>
Date:   Tue Mar 5 19:34:23 2019 +0100

    keyboard: Add bottom emoji panel row to separate aspect container
    
    So we ensure the row has the right aspect ratio, and buttons neatly aligned
    with the bottom row in the alphanumeric view.

 js/ui/keyboard.js | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/keyboard.js b/js/ui/keyboard.js
index 124831d6a..f52f4113d 100644
--- a/js/ui/keyboard.js
+++ b/js/ui/keyboard.js
@@ -881,7 +881,7 @@ var EmojiSelection = class EmojiSelection {
         this._pageIndicator.setReactive(false);
 
         let bottomRow = this._createBottomRow();
-        this.actor.add(bottomRow, { x_fill: true, y_fill: false });
+        this.actor.add(bottomRow, { expand: true, x_fill: false, y_fill: false });
 
         this._emojiPager.setCurrentPage(0);
     }
@@ -970,7 +970,12 @@ var EmojiSelection = class EmojiSelection {
         row.appendKey(key.actor);
         row.layoutButtons();
 
-        return row;
+        let actor = new AspectContainer({ layout_manager: new Clutter.BinLayout(),
+                                          x_expand: true, y_expand: true });
+        actor.add_child(row);
+        actor.setRatio(11.5, 1);
+
+        return actor;
     }
 };
 Signals.addSignalMethods(EmojiSelection.prototype);


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