bug fix: false id clash error for wrapping text

This commit is contained in:
Emil Ernerfeldt 2021-03-20 09:27:04 +01:00
parent 36d9f8a7c7
commit 7ac91970bd

View file

@ -283,8 +283,7 @@ impl Widget for Label {
row.y_min += y_translation;
row.y_max += y_translation;
let rect = row.rect().translate(vec2(pos.x, pos.y));
ui.advance_cursor_after_rect(rect);
response |= ui.interact(rect, id, sense);
response |= ui.allocate_rect(rect, sense);
}
response.widget_info(|| WidgetInfo::labeled(WidgetType::Label, &galley.text));
self.paint_galley_focus(ui, pos, galley, response.has_focus());