From 52bfab6135c45747b636e81f5d04e324c6bd0331 Mon Sep 17 00:00:00 2001 From: griffi-gh Date: Fri, 1 Mar 2024 20:44:37 +0100 Subject: [PATCH] minor comment edit --- hui/src/draw.rs | 2 ++ hui/src/element/builtin/container.rs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/hui/src/draw.rs b/hui/src/draw.rs index a0fd7c7..93f5950 100644 --- a/hui/src/draw.rs +++ b/hui/src/draw.rs @@ -1,5 +1,7 @@ //! draw commands, tesselation and UI rendering. +//TODO: 9-slice draw command + use crate::{ rectangle::Corners, text::{FontHandle, TextRenderer} diff --git a/hui/src/element/builtin/container.rs b/hui/src/element/builtin/container.rs index 06290e2..9cddc37 100644 --- a/hui/src/element/builtin/container.rs +++ b/hui/src/element/builtin/container.rs @@ -88,7 +88,7 @@ impl UiElement for Container { state: ctx.state, layout: &LayoutInfo { 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, }, text_measure: ctx.text_measure,