Commit a831118a authored by Erik Reider's avatar Erik Reider

Fixed measuring error message when trying to measure IterBox

parent 3bc69933
...@@ -9,6 +9,7 @@ template $SwayNotificationCenterControlCenter: ApplicationWindow { ...@@ -9,6 +9,7 @@ template $SwayNotificationCenterControlCenter: ApplicationWindow {
ScrolledWindow window { ScrolledWindow window {
hscrollbar-policy: never; hscrollbar-policy: never;
overflow: hidden;
styles [ styles [
"control-center", "control-center",
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
}, },
"layer-shell-cover-screen": { "layer-shell-cover-screen": {
"type": "boolean", "type": "boolean",
"description": "Wether or not the windows should cover the whole screen when layer-shell is used. Fixes animations in compositors like Hyprland.", "description": "Wether or not the windows should cover the whole screen when layer-shell is used. May exceed the height of the monitor if the value is too large. Fixes animations in compositors like Hyprland.",
"default": true "default": true
}, },
"cssPriority": { "cssPriority": {
......
...@@ -47,11 +47,11 @@ namespace SwayNotificationCenter { ...@@ -47,11 +47,11 @@ namespace SwayNotificationCenter {
} }
int m_height, n_height; int m_height, n_height;
child.measure (Gtk.Orientation.VERTICAL, width, child.measure (Gtk.Orientation.VERTICAL, -1,
out m_height, out n_height, out m_height, out n_height,
null, null); null, null);
int m_width, n_width; int m_width, n_width;
child.measure (Gtk.Orientation.HORIZONTAL, height, child.measure (Gtk.Orientation.HORIZONTAL, -1,
out m_width, out n_width, out m_width, out n_width,
null, null); null, null);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment