Skip to content

Commit

Permalink
directvt#396 Disable text wrapping on buttons by default
Browse files Browse the repository at this point in the history
  • Loading branch information
o-sdn-o committed Oct 17, 2023
1 parent 31bde39 commit 50a5581
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/netxs/desktopio/controls.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4026,7 +4026,12 @@ namespace netxs::ui
// item: .
auto accented(bool b = true) { unln = b; return This(); }
// item: .
void set(view utf8) { data = utf8; base::reflow(); }
void set(view utf8)
{
data.parser::style.wrp(wrap::off);
data = utf8;
base::reflow();
}
};

// controls: Textedit box.
Expand Down

0 comments on commit 50a5581

Please sign in to comment.