needs_scrollbar() {
            let [, nat_h] = this.menu.actor.get_preferred_height(-1);
            let max_h     = this.menu.actor.get_theme_node().get_max_height();

            return max_h >= 0 && nat_h >= max_h;
        }
// when the scrollbar is invisible.
when the scrollbar is invisible.
when the scrollbar is invisible .
needs_scrollbar() {
            let [, nat_h] = this.menu.actor.get_preferred_height(-1);
            let max_h     = this.menu.actor.get_theme_node().get_max_height();
            return max_h >= 0 && nat_h >= max_h;
        }
needs_scrollbar ( ) { let [ , nat_h ] = this . menu . actor . get_preferred_height ( - 1 ) ; let max_h = this . menu . actor . get_theme_node ( ) . get_max_height ( ) ; return max_h >= 0 && nat_h >= max_h ; }
when the scrollbar is invisible.
when the scrollbar is invisible .