Skip to content

Commit

Permalink
Add an option to use fixed position.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Pickhardt committed May 24, 2012
1 parent 35f62f3 commit 1fe9aa6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions guiders-1.2.3.js
Expand Up @@ -21,8 +21,8 @@ var guiders = (function($) {
guiders.version = "1.2.3";

guiders._defaultSettings = {
attachTo: null, /* Selector of the element to attach to. */
autoFocus: true, /* Determines whether or not the browser scrolls to the element. */
attachTo: null, // Selector of the element to attach to.
autoFocus: true, // Determines whether or not the browser scrolls to the element.
buttons: [{name: "Close"}],
buttonCustomHTML: "",
classString: null,
Expand All @@ -38,6 +38,7 @@ var guiders = (function($) {
overlay: false,
position: 0, // 1-12 follows an analog clock, 0 means centered
title: "Sample title goes here",
useFixedPosition: false, // Determines whether to use "fixed" instead of "absolute"
width: 400,
xButton: false // this places a closer "x" button in the top right of the guider
};
Expand Down Expand Up @@ -173,7 +174,7 @@ var guiders = (function($) {
}

return myGuider.elem.css({
"position": "absolute",
"position": myGuider.useFixedPosition ? "fixed" : "absolute",
"top": top,
"left": left
});
Expand Down

0 comments on commit 1fe9aa6

Please sign in to comment.