messageList: Floor preferred height of LabelExpanderLayout

This fixes the flickering when expanding/collapsing an expandable
message inside a NotificationMessageGroup.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3012>
This commit is contained in:
Julian Sparber 2025-01-31 11:30:36 +01:00 committed by Marge Bot
parent b4113b1ee2
commit ef4af961bf

View File

@ -277,7 +277,7 @@ const LabelExpanderLayout = GObject.registerClass({
];
}
return [min, nat];
return [Math.floor(min), Math.floor(nat)];
}
});