Finalize layout stage 2 fixes and refresh regression scenes

This commit is contained in:
Codex
2026-04-16 11:40:39 +08:00
parent b7ad960518
commit 738cf035bb
20 changed files with 1470 additions and 308 deletions
+5
View File
@@ -6,6 +6,11 @@ TextBox::TextBox(int x, int y, int width, int height, std::string text, StellarX
:Control(x, y, width, height), text(text), mode(mode), shape(shape)
{
this->id = "TextBox";
// TextBox 当前阶段的默认布局策略:
// - 水平方向允许通过锚点语义拉伸
// - 垂直方向当前实现保持固定尺寸,不在本轮引入随高度变化的视觉自适应
this->layoutCapability.allowStretchX = true;
this->layoutCapability.allowStretchY = false;
}
void TextBox::draw()