Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

  • pavo123
    replied
    Hi Isomorphic,

    exactly what I was looking for. Thank you very much!

    Best regards
    Pavo

    Leave a comment:


  • Isomorphic
    replied
    Do you mean like this, with width:100% for the inner canvas, to avoid a horizontal scroller, and a taller height for the inner canvas, to ensure a v-scroller?


    Code:
    isc.Canvas.create({
        backgroundColor:"yellow", width:400, height:300,
        overflow:"auto",
        children:[
            isc.Canvas.create({
                backgroundColor:"blue", width:"100%", height:400,
                overflow:"clip-h"
            })
        ]
    })

    Leave a comment:


  • pavo123
    replied
    Hi Isomorphic,

    thank you very much for the answer!

    Sorry but I didn't understand how exactly achieve an alternative way.
    I think that you've suggested something like:
    Code:
    isc.Canvas.create({
        backgroundColor:"yellow", width:400, height:400,
        overflow:"auto",
        children:[
            isc.Canvas.create({
                backgroundColor:"blue", width:400, height:400,
                overflow:"clip-h"
            })
        ]
    })
    , but this doesn't work. (v12.0p_2019-12-02/AllModules Development Only (built 2019-12-02))

    It would be great if you can edit my sample because then it will be very clear how to it.

    Best regards
    Pavo

    Leave a comment:


  • Isomorphic
    replied
    Hi Pavo
    This is not currently supported.
    It's something we've considered if there's sufficient interest, and might be eligible for Feature Sponsorship if that would interest you.
    For now an alternative might be to create a parent canvas with overflow set to Overflow.AUTO and a child component with overflow set to Overflow.CLIP_H

    Regards
    Isomorphic Software

    Leave a comment:


  • pavo123
    replied
    Or even better possibily:

    com.smartgwt.client.types.Overflow.AUTO_V
    That would mean: Vertical scrollbars are displayed only if necessary.

    Leave a comment:


  • pavo123
    started a topic com.smartgwt.client.types.Overflow: SCROLL_V

    com.smartgwt.client.types.Overflow: SCROLL_V

    Hi Isomorphic,

    is it possible to always draw only vertical scrollbar and never horizontal?

    Best regards
    Pavo
Working...
X