add 'scroll-step' property to container

This commit is contained in:
MihailRis
2024-11-19 06:46:54 +03:00
parent 5c005b4f9a
commit 2412699b89
6 changed files with 21 additions and 3 deletions
+3
View File
@@ -172,6 +172,9 @@ static void _readContainer(UiXmlReader& reader, const xml::xmlelement& element,
if (element->has("scrollable")) {
container.setScrollable(element->attr("scrollable").asBool());
}
if (element->has("scroll-step")) {
container.setScrollStep(element->attr("scroll-step").asInt());
}
for (auto& sub : element->getElements()) {
if (sub->isText())
continue;