Announcement

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

    how to know if scrollbar is showed or not?

    Hi! I have a HTMLPane that i want to know (according to the content put on it) if it has draw the scrollbar or not. I thougt that it can be easily done by getting the scrollbottom. But it returns always 0, even if it is not drawn.
    I hope you guys can help me out here.

    Greetings!!!

    #2
    Hi,

    Im doing if (getScrollHeight() > getHeight()) in a Layout, but I dont know if there's a better method and/or if this works in a HTMLPane.

    Comment


      #3
      thanks <b>bebo</b> but id didnt work at all. Does Anybody knows how to accomplish this?

      Comment


        #4
        Try to print the values of getScrollHeight() and getHeight(), immediatly after you set the contents of the HTMLPane, and after you are sure the contents has been drawn.

        Comment

        Working...
        X