Skip to content
  • Daniel Boles's avatar
    ScrolledWindow: Don’t req size for autohidden bars · fcfad2dd
    Daniel Boles authored and Daniel Boles's avatar Daniel Boles committed
    POLICY_AUTOMATIC means scrollbars are only shown when needed, i.e. when
    the size of the window is not large enough to show the entire child. So
    when measuring the preferred size, such scrollbars should be ignored.
    
    But measure() added size for *any* non-overlay scrollbar of the opposite
    orientation, e.g. for horizontal size, it added the width of vscrollbar.
    So we requested for child + bar, & having enough for child meant that the
    policy hid the bar, leaving extra space empty below/right of the child.
    
    Fix this by only adding size for such bars if they use POLICY_ALWAYS.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=778853
    fcfad2dd