Aylur / ags

A customizable and extensible shell
GNU General Public License v3.0
2.01k stars 104 forks source link

[Issue] Horizontal Scrollable #498

Closed myryk31415 closed 2 months ago

myryk31415 commented 2 months ago

Issues with hscroll set to automatic or always

Part of the code - the current version shows the faulty behavior, the uncommented lines would work as expected (for the 2nd issue another `Box` as parent would be necessary)

``` export default (id) => { let files = Utils.exec(`bash -c "find ${dir} -type f | grep -E '.gif$'"`);//|.jpg$|.jpeg$|.png$'"`); return Widget.Window({ name: `wallpaperpicker${id}`, class_name: "wallpaper", monitor: id, anchor: ["top", "left", "right"], // anchor: ["left", "top", "bottom"], layer: "overlay", keymode: "on-demand", margins: [7], child: Widget.Scrollable({ class_name: 'wallpaperScroll', hscroll: "always", vscroll: "always", child: Widget.Box({ vertical: true, // vertical: false, class_name: 'wallpaperContainer', children: files.split("\n").map(path => ImagesList(path, id)) }), }), /* setup: (self) => { self.keybind("Escape", () => closeEverything()); }, */ }) ```

myryk31415 commented 2 months ago

I`m on version 1.8.2.

myryk31415 commented 2 months ago

Both of those issues work now, I`m still on the same ags version so that was apparently not the problem. It works with the same version I tested before, I didn't do a system upgrade. I have no clue whats happening sadly.