mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
feat(ui): handle bytes attr in CSimpleEditBox::LoadXML
This commit is contained in:
parent
76bc57edb5
commit
88eada90b2
@ -673,8 +673,11 @@ void CSimpleEditBox::LoadXML(XMLNode* node, CStatus* status) {
|
||||
if (bytesAttr && *bytesAttr) {
|
||||
int32_t bytes = SStrToInt(bytesAttr);
|
||||
|
||||
// TODO
|
||||
// - set some member of CSimpleEditBox
|
||||
if (bytes <= 0) {
|
||||
this->m_textLength = -1;
|
||||
} else {
|
||||
this->m_textLength = bytes - 1;
|
||||
}
|
||||
}
|
||||
|
||||
} else if (!SStrCmpI(child->GetName(), "HighlightColor", STORM_MAX_STR)) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user