Skip to content
Discussion options

You must be logged in to vote

I finally found something that seems to work.

It seems that this require to force the size of both the rectangle and the scrollview.
not forgetting to take padding into account

export component TestScrollViewWithText {
    property <string> text: "test";
    property <length> scroll-height;
    property <length> max-text-height : 100px;
    in property <length> tpadding: 15px;

    height: 300px;
    width: 100px;
    VerticalLayout {
        Rectangle {
            background: red;
        }
        Rectangle {
            background: blue;
            border-radius: 10px;
            height: scroll-height + 2 * tpadding;
            ScrollView {
                height: scroll-height + 2

Replies: 6 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@moolight-seashell
Comment options

Comment options

You must be logged in to vote
1 reply
@moolight-seashell
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@moolight-seashell
Comment options

Comment options

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

Comment options

You must be logged in to vote
0 replies
Answer selected by moolight-seashell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants