ags: sync

This commit is contained in:
end-4
2024-01-02 15:55:19 +07:00
parent 577550642f
commit 49bda08cbc
11 changed files with 82 additions and 49 deletions
+4 -3
View File
@@ -18,7 +18,8 @@ export const MarginRevealer = ({
['transition', transition],
['show', () => {
if (widget._revealChild) return;
widget.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.NEVER);
widget.hscroll = 'never';
widget.vscroll = 'never';
child.toggleClassName(hideClass, false);
child.toggleClassName(showClass, true);
widget._revealChild = true;
@@ -46,8 +47,8 @@ export const MarginRevealer = ({
...extraProperties,
],
child: child,
hscroll: (revealChild ? 'never' : 'always'),
vscroll: (revealChild ? 'never' : 'always'),
hscroll: `${revealChild ? 'never' : 'always'}`,
vscroll: `${revealChild ? 'never' : 'always'}`,
});
child.toggleClassName(`${revealChild ? showClass : hideClass}`, true);
return widget;