B2G/gecko/browser/components/tabview/items.js
// Returns the bounds within which it is safe to place all non-stationary <Item>s.
Returns the bounds within which it is safe to place all non-stationary s.
Returns the bounds within which it is safe to place all non - stationary s .
function Items_getSafeWindowBounds() {
    var gutter = Items.defaultGutter;
    var topGutter = 5;
    return new Rect(gutter, topGutter,
        window.innerWidth - 2 * gutter, window.innerHeight - gutter - topGutter);
  }
function Items_getSafeWindowBounds ( ) { var gutter = Items . defaultGutter ; var topGutter = 5 ; return new Rect ( gutter , topGutter , window . innerWidth - 2 * gutter , window . innerHeight - gutter - topGutter ) ; }
Returns the bounds within which it is safe to place all non-stationary <Item>s.
Returns the bounds within which it is safe to place all non - stationary <Item > s .
// the safe bounds that would keep it "in the window" // Here, I've set the top gutter separately, as the top of the window has its own // extra chrome which makes a large top gutter unnecessary. // TODO: set top gutter separately, elsewhere.