minor comment edit

This commit is contained in:
griffi-gh 2024-03-01 20:44:37 +01:00
parent 551dd343ac
commit 80282780d5
2 changed files with 3 additions and 1 deletions

View file

@ -1,5 +1,7 @@
//! draw commands, tesselation and UI rendering. //! draw commands, tesselation and UI rendering.
//TODO: 9-slice draw command
use crate::{ use crate::{
rectangle::Corners, rectangle::Corners,
text::{FontHandle, TextRenderer} text::{FontHandle, TextRenderer}

View file

@ -88,7 +88,7 @@ impl UiElement for Container {
state: ctx.state, state: ctx.state,
layout: &LayoutInfo { layout: &LayoutInfo {
position: ctx.layout.position + size, position: ctx.layout.position + size,
max_size: self.measure_max_inner_size(ctx.layout), // - size TODO max_size: self.measure_max_inner_size(ctx.layout), //TODO: subtract size already taken by previous children
direction: self.direction, direction: self.direction,
}, },
text_measure: ctx.text_measure, text_measure: ctx.text_measure,