[polari] Replace get_preferred_width/height with measure()
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari] Replace get_preferred_width/height with measure()
- Date: Fri, 3 Sep 2021 11:17:32 +0000 (UTC)
commit 7646e6ce6d5cfb6be3466f89bc0d4fd27176a615
Author: Florian Müllner <fmuellner gnome org>
Date: Sat Oct 10 06:03:10 2020 +0200
Replace get_preferred_width/height with measure()
Part-of: <https://gitlab.gnome.org/GNOME/polari/-/merge_requests/228>
src/userList.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/userList.js b/src/userList.js
index d35fe886..230bcace 100644
--- a/src/userList.js
+++ b/src/userList.js
@@ -75,8 +75,8 @@ class UserListPopover extends Gtk.Popover {
return;
const viewHeight = this.get_root().view_height;
- let [popoverHeight] = this.get_preferred_height();
- let [userListHeight] = this._userList.get_preferred_height();
+ const [popoverHeight] = this.measure(Gtk.Orientation.VERTICAL, -1);
+ const [userListHeight] = this._userList.measure(Gtk.Orientation.VERTICAL, -1);
let chromeHeight = popoverHeight - userListHeight;
this._userList.max_content_height = viewHeight - chromeHeight;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]