mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 13:50:04 -04:00
content is wrapped
This commit is contained in:
@@ -124,7 +124,7 @@ impl<'a, 'b> Grid<'a, 'b> {
|
|||||||
self.layout.add(width, height, clip, add_contents);
|
self.layout.add(width, height, clip, add_contents);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Add cell
|
/// Add cell, content is wrapped
|
||||||
pub fn cell(&mut self, add_contents: impl FnOnce(&mut Ui)) {
|
pub fn cell(&mut self, add_contents: impl FnOnce(&mut Ui)) {
|
||||||
self._cell(false, add_contents);
|
self._cell(false, add_contents);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -263,7 +263,7 @@ impl<'a, 'b> TableRow<'a, 'b> {
|
|||||||
response
|
response
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Add column
|
/// Add column, content is wrapped
|
||||||
pub fn col(&mut self, add_contents: impl FnOnce(&mut Ui)) -> Response {
|
pub fn col(&mut self, add_contents: impl FnOnce(&mut Ui)) -> Response {
|
||||||
self._col(false, add_contents)
|
self._col(false, add_contents)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user