commands vertical resize

This commit is contained in:
Martin Kavík 2024-06-17 19:53:56 +02:00
parent 4545656c31
commit 5184eae4f6

View file

@ -220,8 +220,12 @@ impl HeaderPanel {
.inner() .inner()
.color(color!("DarkSlateBlue")) .color(color!("DarkSlateBlue"))
.blur(4)])) .blur(4)]))
// @TODO to MZ API? (together with autocomplete and others?) // @TODO `spellcheck` and `resize` to MZ API? (together with autocomplete and others?)
.update_raw_el(|raw_el| raw_el.attr("spellcheck", "false")) .update_raw_el(|raw_el| {
raw_el
.attr("spellcheck", "false")
.style("resize", "vertical")
})
.placeholder( .placeholder(
Placeholder::new("FW.say_hello()").s(Font::new().color(color!("LightBlue"))), Placeholder::new("FW.say_hello()").s(Font::new().color(color!("LightBlue"))),
) )