mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 06:40:06 -04:00
bug fix: false id clash error for wrapping text
This commit is contained in:
@@ -283,8 +283,7 @@ impl Widget for Label {
|
|||||||
row.y_min += y_translation;
|
row.y_min += y_translation;
|
||||||
row.y_max += y_translation;
|
row.y_max += y_translation;
|
||||||
let rect = row.rect().translate(vec2(pos.x, pos.y));
|
let rect = row.rect().translate(vec2(pos.x, pos.y));
|
||||||
ui.advance_cursor_after_rect(rect);
|
response |= ui.allocate_rect(rect, sense);
|
||||||
response |= ui.interact(rect, id, sense);
|
|
||||||
}
|
}
|
||||||
response.widget_info(|| WidgetInfo::labeled(WidgetType::Label, &galley.text));
|
response.widget_info(|| WidgetInfo::labeled(WidgetType::Label, &galley.text));
|
||||||
self.paint_galley_focus(ui, pos, galley, response.has_focus());
|
self.paint_galley_focus(ui, pos, galley, response.has_focus());
|
||||||
|
|||||||
Reference in New Issue
Block a user