mirror of
https://github.com/emilk/egui.git
synced 2026-09-03 15:20:05 -04:00
[epaint] Add more text wrapping options (#1291)
This commit is contained in:
@@ -85,7 +85,7 @@ impl EasyMarkEditor {
|
||||
let response = if self.highlight_editor {
|
||||
let mut layouter = |ui: &egui::Ui, easymark: &str, wrap_width: f32| {
|
||||
let mut layout_job = highlighter.highlight(ui.style(), easymark);
|
||||
layout_job.wrap_width = wrap_width;
|
||||
layout_job.wrap.max_width = wrap_width;
|
||||
ui.fonts().layout_job(layout_job)
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user