Make Iris layout dependencies explicit
This commit is contained in:
1 parent
2bc0ff1866
commit
3ae034a47b
25 files changed
+609
-186
No files matched your search
@@ -111,7 +111,7 @@ impl TextView {
|
||||
if self.is_blank()
|
||||
&& let Some(hint) = &self.hint
|
||||
{
|
||||
return painter.widget(hint);
|
||||
return painter.widget(hint).size();
|
||||
}
|
||||
let region = tex.size.align(self.align);
|
||||
let within = region.within(&painter.region());
|
||||
@@ -141,9 +141,10 @@ impl Text {
|
||||
}
|
||||
|
||||
impl Widget for Text {
|
||||
fn draw(&mut self, painter: &mut Painter) -> Size {
|
||||
fn draw(&mut self, painter: &mut Painter) {
|
||||
self.update_buf();
|
||||
self.view.draw(painter)
|
||||
let size = self.view.draw(painter);
|
||||
painter.set_size(size);
|
||||
}
|
||||
|
||||
fn requires_exact_region(&self) -> bool {
|
||||
|
||||
Reference in new issue
Block a user