The widget already auto-adjusts its height depending on text contents.
Let it use as much or as little height it needs.
This avoids extra scrolling in some cases.
This reverts commit a09c02591e.
Fixes: https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/1455
Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/636>
27 lines
495 B
Plaintext
27 lines
495 B
Plaintext
using Gtk 4.0;
|
|
using Adw 1;
|
|
|
|
template $GcalNotesSection: Adw.PreferencesRow {
|
|
activatable: false;
|
|
focusable: false;
|
|
|
|
styles [
|
|
"entry",
|
|
"notes-section",
|
|
]
|
|
|
|
Box {
|
|
TextView notes_text {
|
|
hexpand: true;
|
|
top-margin: 6;
|
|
bottom-margin: 6;
|
|
left-margin: 6;
|
|
right-margin: 6;
|
|
sensitive: true;
|
|
wrap-mode: word_char;
|
|
accepts-tab: false;
|
|
state-flags-changed => $on_notes_text_state_flags_changed_cb(template) not-swapped;
|
|
}
|
|
}
|
|
}
|