gnome/extensions/dash-to-dock@micxgx.gmail.com/docking.js
/**
     * Just the child width but taking into account the slided out part
     */
Just the child width but taking into account the slided out part
Just the child width but taking into account the slided out part
vfunc_get_preferred_width(forHeight) {
        let [minWidth, natWidth] = super.vfunc_get_preferred_width(forHeight);
        if ((this.side ==  St.Side.LEFT) || (this.side == St.Side.RIGHT)) {
            minWidth = (minWidth - this._slideoutSize) * this._slidex + this._slideoutSize;
            natWidth = (natWidth - this._slideoutSize) * this._slidex + this._slideoutSize;
        }
        return [minWidth, natWidth];
    }
vfunc_get_preferred_width ( forHeight ) { let [ minWidth , natWidth ] = super . vfunc_get_preferred_width ( forHeight ) ; if ( ( this . side == St . Side . LEFT ) || ( this . side == St . Side . RIGHT ) ) { minWidth = ( minWidth - this . _slideoutSize ) * this . _slidex + this . _slideoutSize ; natWidth = ( natWidth - this . _slideoutSize ) * this . _slidex + this . _slideoutSize ; } return [ minWidth , natWidth ] ; }
Just the child width but taking into account the slided out part
Just the child width but taking into account the slided out part