sized spans!
This commit is contained in:
1 parent
d7d67e4ed3
commit
a0e6623abe
7 files changed
+52
-10
No files matched your search
+1
-1
@@ -41,7 +41,7 @@ impl Widget for Text {
|
||||
// reuse TextureHandle
|
||||
}
|
||||
|
||||
fn size(&mut self, ctx: SizeCtx) -> Vec2 {
|
||||
fn size(&mut self, ctx: &mut SizeCtx) -> Vec2 {
|
||||
let (handle, offset) =
|
||||
ctx.text
|
||||
.draw(&mut self.buf, &self.content, &self.attrs, ctx.textures);
|
||||
|
||||
Reference in new issue
Block a user