[gnome-shell/gbsneto/folder-dialog-improvements: 3/18] appDisplay: Make folder dialog cover the whole screen



commit b1da033bd20a58c63eec0619d3129331ef1263aa
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Thu Jun 4 01:43:11 2020 -0300

    appDisplay: Make folder dialog cover the whole screen
    
    Future commits will improve input handling of the folder
    dialog, and they'll require the dialog to cover the whole
    primary monitor.
    
    Add another internal, center-aligned container to the
    folder dialog, and make it cover the whole available area.
    
    https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1301

 js/ui/appDisplay.js | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index 3400ce1786..736d1027a9 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -1427,12 +1427,10 @@ var AppFolderDialog = GObject.registerClass({
     _init(source, folder) {
         super._init({
             layout_manager: new Clutter.BinLayout(),
-            style_class: 'app-folder-dialog-container',
             visible: false,
             x_expand: true,
             y_expand: true,
-            x_align: Clutter.ActorAlign.CENTER,
-            y_align: Clutter.ActorAlign.CENTER,
+            reactive: true,
         });
 
         this.add_constraint(new Layout.MonitorConstraint({
@@ -1455,7 +1453,14 @@ var AppFolderDialog = GObject.registerClass({
             y_align: Clutter.ActorAlign.FILL,
             vertical: true,
         });
-        this.add_child(this._viewBox);
+        this.add_child(new St.Bin({
+            style_class: 'app-folder-dialog-container',
+            child: this._viewBox,
+            x_expand: true,
+            y_expand: true,
+            x_align: Clutter.ActorAlign.CENTER,
+            y_align: Clutter.ActorAlign.CENTER,
+        }));
 
         this._addFolderNameEntry();
         this._viewBox.add_child(this._view);


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