Browse Source

utilities: reverse order of drawing fields in form

Reverse order of drawing since a field might have an auto complete
prompt below it, so rendering the field below instead of above next
would overwrite it.
jmap-eventsource
Manos Pitsidianakis 1 year ago
parent
commit
ede5851baf
Signed by: epilys GPG Key ID: 73627C2F690DF710
  1. 2
      src/components/utilities/widgets.rs

2
src/components/utilities/widgets.rs

@ -523,7 +523,7 @@ impl<T: 'static + std::fmt::Debug + Copy + Default + Send + Sync> Component for
);
let label_attrs = crate::conf::value(context, "widgets.form.label");
for (i, k) in self.layout.iter().enumerate() {
for (i, k) in self.layout.iter().enumerate().rev() {
let v = self.fields.get_mut(k).unwrap();
/* Write field label */
write_string_to_grid(

Loading…
Cancel
Save