I’m calling setWidth on a VLayout but the VLayout expands to fill its containing layout.
Here’s the code:
Here’s the code:
Code:
[B]public[/B] [B]class[/B] UserErrorPage [B]extends[/B] VLayout {
[B]public[/B] UserErrorPage() {
setWidth100();
setHeight100();
setBackgroundColor("#E8E8E8");
addMember(header());
}
[B]private[/B] VLayout header() {
[B]return[/B] [B]new[/B] VLayout() {
{
setBackgroundColor("#292B2C");
setWidth100();
setHeight(73);
setDefaultLayoutAlign(Alignment.[B][I]CENTER[/I][/B]);
addMember(logoContainer());
}
};
}
[B]private[/B] VLayout logoContainer() {
[B]return[/B] [B]new[/B] VLayout() {
{
setLayoutAlign(Alignment.[B][I]CENTER[/I][/B]);
setHeight100();
setWidth(1920);
setBorder("3px dashed yellow");
}
};
}
}
Comment