bug fix: false id clash error for wrapping text
This commit is contained in:
parent
36d9f8a7c7
commit
7ac91970bd
1 changed files with 1 additions and 2 deletions
|
@ -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());
|
||||||
|
|
Loading…
Reference in a new issue