Skip to content

How can I remove default padding of ScrollArea? #4309

Closed Answered by balex89
ParkingLot0326 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, @ParkingLot0326! Try adding property content-style (also content-active-style):

with ui.scroll_area().classes("w-full").style("gap:0; margin:0; padding:0; border:1px solid red;") as area:
    area.props.update({
        'content-style': {'padding': 0},
        'content-active-style': {'padding': 0}
    })
    with ui.column().style("width:100%; gap:0; padding:0; margin:0;"):
        for i in range(0, 100):
            with ui.row().style("width: 100%; background-color: lightblue; border: 1px solid black;"):
                ui.label(i).style("width:100%; margin:4px;")
ui.run()

For more info and other Quasar ScrollArea properties that might be useful: https://quasar.dev/vue-components/s…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ParkingLot0326
Comment options

Answer selected by ParkingLot0326
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants