Finalize layout stage 2 fixes and refresh regression scenes
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user