# UILayoutComponent.width [← UILayoutComponent](index.md) · [← Master](../../wiki.md) Parça 2/3 · [önceki](width.md) · [sonraki](width-3.md) column.textbox().id("lastname").h(20); column.toggle("I agree to ToS").id("toggle").h(14); column.text("The terms of service are following: you agree that your data will be used by an AI to generate funny cat and dog videos based entirely on your name and lastname.\n\nYou also agree to give us your time to view those videos, because we said so.").color(0xaaaaaa, false).marginTop(8); for (var i = 0; i < 10; i++) { column.button("Button " + (i + 1)).h(20); } column.text("These 10 buttons above demonstrate the ability of this layout element to scroll down.").marginTop(12); c.getSubject().openUI(ui); } scrollSize public UILayoutComponent scrollSize(int scrollSize) Set manually scroll size of the layout element. This works only with basic IMappetUIBuilder.layout() component. If horizontal() was enabled earlier, then this value will change the max scrollable to width, rather than height. function main(c) { var size = 400; var ui = mappet.createUI().background(); // Demonstration of manual vertical scroll area var vertical = ui.layout(); vertical.getCurrent().scroll().scrollSize(size).rxy(0.25, 0.5).wh(150, 200).anchor(0.5); vertical.button("Top left").xy(10, 10).wh(100, 20); vertical.button("Middle").rx(0.5, -50).y(size / 2 - 10).wh(100, 20); vertical.button("Bottom right").rx(1, -110).y(size - 30).wh(100, 20); ui.label("Vertical scroll").background(0x88000000).rx(0.25).ry(0.5, -120).wh(100, 20).anchorX(0.5).labelAnchor(0.5, 0); // Demonstration of manual horizontal scroll area var horizontal = ui.layout(); horizontal.getCurrent().scroll().horizontal().scrollSize(size).rxy(0.75, 0.5).wh(150, 200).anchor(0.5);