Username Password
Bookmark and Share

Positionable slidePanel (top only)

The top-position of the slidePanel you seen on the left of your site when you are in Admin mode can be changed with this package. It fixes some (not all) of the bugs that are in the javascript of the slidePanel.

1. import this package, for example here: root/import/macro/adminbar?func=manageAssets
2. Enter the desired offset by changing this.ypos=165; in this file:
3. use ^AdminBar(1k2znwdV-mKqS9G2QrDRbw); instead of ^AdminBar();


The slidePanel is positioned by a javascript in the extras folder of WebGUI.

On line 235 of this script you seem to be able to change the y-position (top) of the slidePanelBar. However, changing this value is not taken into account by several functions. Below is a diff of the changes. All changes have comments.

<       var i=parseInt(;
>       var i=parseInt(;
<       var k=parseInt(;
<       if (k==slidePanelLinkTop)
>       var k=parseInt(;    //Arjan: the panel is positioned by the function createSlidePanelBar. Original: var k=parseIn t(;
>       if (k==(slidePanelLinkTop+this.parentYpos)) //Arjan: slidePanelLinkTop didn't take into account the position of the SlidePanelBar. Original: if (k==s lidePanelLinkTop)
<                       document.write((this.height-(this.panels.length)*slidePanelButtonHeight)+'px; left:');
>               document.write((this.height-this.ypos-(this.panels.length)*slidePanelButtonHeight)+'px; left:'); // Arjan: the height of the scroll-down butt on should take into account the positioning of the PanelBar. Original: document.write((this.height-(this.panels.length)*slidePanelButtonHeight)+'px; left:');
>               this.panels[i].parentYpos=this.ypos; //Arjan: added so that the top-position of the PanelBar will be accessable in the function testScroll.
<                     this.panels[i]*slidePanelButtonHeight)+"px";
>             this.panels[i]*slidePanelButtonHeight)+this.ypos)+"px"; //Arjan: the panel should be positioned in relation t o the PanelBar as well. Original: this.panels[i]*slidePanelButtonHeight)+"px";
<       this.ypos=0;                            // bar y-pos
>       this.ypos=165;                            // bar y-pos //Arjan: changed

Kind regards,

Arjan Widlak. 

System RequirementsPlease be advised: this contribution was tested with something older than WebGUI 7.5. When this contribution was uploaded there was no field for the author to fill out regarding it's requirements.
Downloadroot_import_macro_adminbar_slidepanel-positionable.wgpkg root_import_macro_adminbar_slidepanel-positionable.wgpkg
LinksNo Support Offered
Statistics Downloads: 737
Views: 3613
Rating: 0
Updated: 5/26/2007
Keywords packages
NavigationBack to the Bazaar
© 2022 Plain Black Corporation | All Rights Reserved