Announcement

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

    com.smartgwt.client.types.Overflow: SCROLL_V

    Hi Isomorphic,

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

    Best regards
    Pavo

    #2
    Or even better possibily:

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

    Comment


      #3
      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

      Comment


        #4
        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

        Comment


          #5
          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"
                  })
              ]
          })

          Comment


            #6
            Hi Isomorphic,

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

            Best regards
            Pavo

            Comment

            Working...
            X