Skip to content

Commit

Permalink
Fix attempt #3
Browse files Browse the repository at this point in the history
  • Loading branch information
sakithb committed Aug 29, 2021
1 parent e1a75d4 commit 18f7a4c
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions prefs.js
Original file line number Diff line number Diff line change
Expand Up @@ -492,10 +492,18 @@ function buildPrefsWidget() {
// scrolledWindow.set_child(widgetPrefs);
// }

let scrolledWindow = new Gtk.ScrolledWindow({
max_content_height: 600,
child: widgetPrefs,
});
// let scrolledWindow = new Gtk.ScrolledWindow({
// max_content_height: 600,
// child: widgetPrefs,
// });

return scrolledWindow;
if (shellVersion < 40) {
return widgetPrefs;
} else {
let scrolledWindow = new Gtk.ScrolledWindow({
max_content_height: 600,
child: widgetPrefs,
});
return scrolledWindow;
}
}

0 comments on commit 18f7a4c

Please sign in to comment.