Lines Matching full:layout
3 * jquery.layout 1.4.3
13 * SEE: http://layout.jquery-dev.com/LICENSE.txt
15 * Changelog: http://layout.jquery-dev.com/changelog.cfm
17 * Docs: http://layout.jquery-dev.com/documentation.html
18 * Tips: http://layout.jquery-dev.com/tips.html
19 * Help: http://groups.google.com/group/jquery-ui-layout
64 * GENERIC $.layout METHODS - used by all layouts
66 $.layout = {
71 // $.layout.browser REPLACES $.browser
127 // layout element settings
136 // SEE $.layout.defaults.zIndexes.resizer_normal
176 // $.layout.defaults.zIndexes.pane_normal
256 , layout = $el.data("layout") || $el.data("parentLayout");
257 if (layout) {
258 var $cont = layout.container;
261 var $pane = $cont.closest("."+ $.layout.defaults.panes.paneClass);
270 var $pane = $.layout.getParentPaneElem(el);
276 var $pane = $.layout.getParentPaneElem(el);
284 var evt = $.layout.getEventObject( evt_or_pane )
287 // ALWAYS stop propagation of events triggered in Layout!
292 $.layout.msg('LAYOUT ERROR - Invalid pane-name: "'+ pane +'"');
299 // LAYOUT-PLUGIN REGISTRATION
309 // arrays of plugin or other methods to be triggered for events in *each layout* - will be passed '…
310 , onCreate: [] // runs when layout is just starting to be created - right after options are set
311 , onLoad: [] // runs after layout container and global events init, but before initPanes is called
313 , onDestroy: [] // runs after layout is destroyed
314 , onUnload: [] // runs after layout is destroyed OR when page unloads
323 , scrollbarWidth: function () { return window.scrollbarWidth || $.layout.getScrollbarSize('width'…
324 , scrollbarHeight: function () { return window.scrollbarHeight || $.layout.getScrollbarSize('height…
342 $d.on('mouseup', $.layout.enableTextSelection ).data(x, true);
387 , N = $.layout.cssNum
398 b = x["border" + e] = $.layout.borderWidth($E, e);
399 p = x["padding"+ e] = $.layout.cssNum($E, "padding"+e);
469 var lb = $.layout.browser
471 , b = $.layout.borderWidth
472 , n = $.layout.cssNum
495 var lb = $.layout.browser
497 , b = $.layout.borderWidth
498 , n = $.layout.cssNum
520 var CSS = $.layout.showInvisibly($E)
538 * $(document).mousemove( $.layout.trackMouse );
566 return ($.layout.browser.msie && x < 0 && y < 0) || ((x >= L && x <= R) && (y >= T && y <= B));
572 * @example $.layout.msg("My message"); // log text
573 * @example $.layout.msg("My message", true); // alert text
574 * @example $.layout.msg({ foo: "bar" }, "Title"); // log hash-data, with custom title
575 * @example $.layout.msg({ foo: "bar" }, true, "Title", { sort: false }); -OR-
576 …* @example $.layout.msg({ foo: "bar" }, "Title", { sort: false, display: true }); // alert hash-da…
616 …ve Console" onclick="$(this).closest(\'#layoutLogger\').remove()">X</span>Layout console.log</div>'
630 * $.layout.browser REPLACES removed $.browser, with extra data
648 , lb = $.layout.browser = {
667 $.layout.defaults = {
669 * LAYOUT & LAYOUT-CONTAINER OPTIONS
673 , containerClass: "ui-layout-container" // layout-container element
675 , scrollToBookmarkOnLoad: true // after creating a layout, scroll to bookmark in URL (.../page.ht…
682 , onload_start: null // CALLBACK when Layout inits - after options initialized, but before elem…
683 , onload_end: null // CALLBACK when Layout inits - after EVERYTHING has been initialized
684 , onunload_start: null // CALLBACK when Layout is destroyed OR onWindowUnload
685 , onunload_end: null // CALLBACK when Layout is destroyed OR onWindowUnload
688 , showDebugMessages: false // display console-and-alert debug msgs - IF this Layout version _has…
701 pane: "pane" // description of "layout pane element" - used only in error messages
704 …, containerMissing: "UI Layout Initialization Error\nThe specified layout-container does not exis…
705 …, centerPaneMissing: "UI Layout Initialization Error\nThe center-pane element does not exist.\nTh…
706 … noContainerHeight: "UI Layout Initialization Warning\nThe layout-container \"CONTAINER\" has no …
707 , callbackError: "UI Layout Callback Error\nThe EVENT callback is not a valid function."
723 …, contentSelector: ".ui-layout-content" // INNER div/element to auto-size so only it scrolls, not…
724 , contentIgnoreSelector: ".ui-layout-ignore" // element(s) to 'ignore' when measuring 'content'
727 , paneClass: "ui-layout-pane" // Layout Pane
728 , resizerClass: "ui-layout-resizer" // Resizer Bar
729 , togglerClass: "ui-layout-toggler" // Toggler Button
730 …, buttonClass: "ui-layout-button" // CUSTOM Buttons - eg: '[ui-layout-button]-toggle/-open/-clos…
745 … true // IF size is 'auto' or a percentage, then recalc 'pixel size' whenever the layout resizes
763 , preventQuickSlideClose: $.layout.browser.webkit // Chrome triggers slideClosed as it is opening
801 , children: null // Layout-options for nested/child layout - even {} is valid as options
802 …f child is NOT 'directly nested', a selector to find it/them (can have more than one child layout!)
803 …, initChildren: true // true = child layout will be created as soon as _this_ layout completes …
804 , destroyChildren: true // true = destroy child-layout if this pane is destroyed
805 , resizeChildren: true // true = trigger child-layout.resizeAll() when this pane is resized
807 , triggerEventsOnLoad: false // true = trigger onopen OR onclose callbacks when layout initializes
834 paneSelector: ".ui-layout-north"
840 paneSelector: ".ui-layout-south"
846 paneSelector: ".ui-layout-east"
852 paneSelector: ".ui-layout-west"
858 paneSelector: ".ui-layout-center"
864 $.layout.optionsMap = {
865 // layout/global options - NOT pane-options
866 layout: ("name,instanceKey,stateManagement,effects,inset,zIndexes,errors," property
870 // borderPanes: [ ALL options that are NOT specified as 'layout' ]
886 …* @param {boolean=} [addKeys=false] Should the primary layout.options keys be added if they do no…
889 $.layout.transformData = function (hash, addKeys) {
906 branch[key] = $.layout.transformData( val ); // RECURSE
922 $.layout.backwardCompatibility = {
960 var map = $.layout.backwardCompatibility.map
1002 var ren = $.layout.backwardCompatibility.renameOptions;
1003 // rename root (layout) options
1015 $.each($.layout.config.allPanes, function (i, pane) {
1026 * BEGIN WIDGET: $( selector ).layout( {options} );
1029 $.fn.layout = function (opts) { function
1033 browser = $.layout.browser
1034 , _c = $.layout.config
1037 , cssW = $.layout.cssWidth
1038 , cssH = $.layout.cssHeight
1039 , elDims = $.layout.getElementDimensions
1040 , styles = $.layout.getElementStyles
1041 , evtObj = $.layout.getEventObject
1042 , evtPane = $.layout.parsePaneName
1047 , options = $.extend(true, {}, $.layout.defaults)
1048 , effects = options.effects = $.extend(true, {}, $.layout.effects)
1051 * layout-state object
1054 // generate unique ID to use for event.namespace so can unbind only events added by 'this layout'
1055 id: "layout"+ $.now() // code uses alias: sID
1075 * parent/child-layout pointers
1111 $.layout.msg( o.name +' / '+ msg, (popup !== false) );
1118 * @param {string} evtName Name of the layout callback, eg "onresize_start"
1138 skipBoundEvents = pane; // allow pane param to be skipped for Layout callback
1161 // pass data: pane-name, pane-element, pane-state, pane-options, and layout-name
1163 else // must be a layout/container callback - pass suitable info
1183 else { // LAYOUT events can be bound to the container-element
1184 $N.triggerHandler("layout"+ lng, [ Instance, s, o, lName ]);
1186 $N.triggerHandler("layout"+ shrt, [ Instance, s, o, lName ]);
1329 , vis = $.layout.showInvisibly($P) // show pane invisibly if hidden
1526 * Initialize the layout - called automatically whenever an instance of layout is created
1540 // init plugins for this layout, if there are any (eg: stateManagement)
1541 runPluginCallbacks( Instance, $.layout.onCreate );
1544 // onload will CANCEL layout creation if it returns false
1557 // init plugins for this layout, if there are any (eg: customButtons)
1558 runPluginCallbacks( Instance, $.layout.onLoad );
1560 // if layout elements are hidden, then layout WILL NOT complete initialization!
1570 * Initialize the layout IF not already
1581 * Initialize the layout - called automatically whenever an instance of layout is created
1593 // if layout is BODY element, try again in 50ms
1594 // SEE: http://layout.jquery-dev.com/samples/test_popup_window.html
1611 // initialize all layout elements
1619 // check to see if this layout 'nested' inside a pane
1622 // bind resizeAll() for 'this layout instance' to window.resize event
1629 // init plugins for this layout, if there are any
1630 runPluginCallbacks( Instance, $.layout.onReady );
1639 * Initialize nested layouts for a specific pane - can optionally pass layout-options
1642 * @param {Object=} [opts] Layout-options - if passed, will OVERRRIDE options[pane].children
1643 * @return An object pointer to the layout instance created - or null
1670 , child = $cont.data("layout") // see if a child-layout ALREADY exists on this element
1672 // if no layout exists, but children are set, try to create the layout now
1675 // set a unique child-instance key for this layout, if not already set
1677 // If THIS layout has a hash in stateManagement.autoLoad,
1678 // then see if it also contains state-data for this child-layout
1681 // THIS layout's state was cached when its state was loaded
1688 co_sm.autoSave = false; // disable autoSave because saving handled by parent-layout
1694 // create the layout
1695 child = $cont.layout( co );
1699 // add the child and update all layout-pointers
1700 // MAY have already been done by child-layout calling parent.refreshChildren()
1716 if (!key) key = "layout"+ (++parentPaneState.childIdx); // if no name/key found, generate one
1719 $c.data("layoutInstanceKey", key); // useful if layout is destroyed and then recreated
1725 * @param {Object=} newChild New child-layout Instance to add to this pane
1743 // see if there is a directly-nested layout inside this pane
1744 // if there is, then there can be only ONE child-layout, so check that...
1746 newChild = $P.data("layout");
1755 // set a unique child-instance key for this layout, if not already set
1759 pC[ o.instanceKey ] = newChild.container.data("layout"); // add childLayout instance
1765 // if newChild was NOT passed - see if there is a child layout NOW
1800 // trigger plugin callabacks for this layout (eg: stateManagement)
1801 runPluginCallbacks( Instance, $.layout.onUnload );
1824 // see if this container is a 'pane' inside an outer-layout
1825 , parent = $N.data("parentLayout") // parent-layout Instance
1826 , pane = $N.data("layoutEdge") // pane-name in parent-layout
1828 , num = $.layout.cssNum
1833 …sC.ref = (o.name ? o.name +' layout / ' : '') + tag + (id ? "#"+id : cls ? '.['+cls+']' : ''); //…
1836 // try to find a parent-layout
1838 $parent = $N.closest("."+ $.layout.defaults.panes.paneClass);
1845 layout: Instance property
1846 …, layoutContainer: sID // FLAG to indicate this is a layout-container - contains unique internal ID
1858 $N.bind("layout"+ name.toLowerCase() +"."+ sID, Instance[ layoutMethods[name] || name ]);
1861 // if this container is another layout's 'pane', then set child/parent pointers
1865 // set pointers to THIS child-layout (Instance) in parent-layout
1912 // format html & body if this is a full page layout
1965 // set current layout-container dimensions
1974 // set current layout-container dimensions
1990 * Bind layout hotkeys - if options enabled
2015 // reprocess user's layout-options to have correct options sub-key structure
2016 opts = $.layout.transformData( opts, true ); // panes = default subkey
2019 opts = $.layout.backwardCompatibility.renameAllOptions( opts );
2024 data = $.layout.optionsMap.noDefault;
2029 // REMOVE any layout-options specified under opts.panes
2030 data = $.layout.optionsMap.layout;
2037 // MOVE any NON-layout-options from opts-root to opts.panes
2038 data = $.layout.optionsMap.layout;
2039 var rootKeys = $.layout.config.optionRootKeys;
2063 // ONLY copy keys from opts.panes listed in: $.layout.optionsMap.center
2064 data = $.layout.optionsMap.center; // list of 'center-pane keys'
2077 if (!o.resizerClass) o.resizerClass = "ui-layout-resizer";
2078 if (!o.togglerClass) o.togglerClass = "ui-layout-toggler";
2081 if (!o.paneClass) o.paneClass = "ui-layout-pane";
2115 || "none" // MEANS $.layout.defaults.panes.fxName == "" || false || null || 0
2201 // Before RC30.3, there was a 10ms delay here, but that caused layout
2204 // process pane contents and callbacks, and init/resize child-layout if exists
2211 * Add a pane to the layout - subroutine of initPanes()
2261 parentLayout: Instance // pointer to Layout Instance
2268 ….addClass( o.paneClass +" "+ o.paneClass+"-"+pane ) // default = "ui-layout-pane ui-layout-pane-we…
2347 // if manually adding a pane AFTER layout initialization, then...
2370 // if manually adding a pane AFTER layout initialization, then...
2383 // see if there is a directly-nested layout inside this pane
2384 if ($P.data("layout"))
2385 refreshChildren( pane, $P.data("layout") );
2387 // process pane contents and callbacks, and init/resize child-layout if exists
2389 if (state.initialized) // this pane was added AFTER layout was created
2397 // resize child - IF inner-layout already exists (created before this layout)
2499 .mousedown($.layout.disableTextSelection) // prevent text-selection OUTSIDE resizer
2500 .mouseup($.layout.enableTextSelection) // not really necessary, but just in case
2525 if (o.togglerContent_open) // ui-layout-open
2536 //.hover( addHover, removeHover ) // use ui-layout-toggler-west-hover .content-open instead!
2538 if (o.togglerContent_closed) // ui-layout-closed
2547 //.hover( addHover, removeHover ) // use ui-layout-toggler-west-hover .content-closed instead!
2572 * Initialize scrolling ui-layout-content div - if exists
2622 var draggingAvailable = $.layout.plugins.draggable
2659 containment: $N[0] // limit resizing to layout container
2924 el.className = "ui-layout-mask ui-layout-mask-"+ pane; // for user styling
2946 $N.append( el ); // append to LAYOUT CONTAINER
2950 $M.addClass("ui-layout-mask-inside-pane");
2966 * Destroy this layout and reset all elements
2971 // UNBIND layout events and remove global object
2981 // need to look for parent layout BEFORE we remove the container data, else skips a level
2982 //var parentPane = Instance.hasParentLayout ? $.layout.getParentPaneInstance( $N ) : null;
2984 // reset layout-container
2986 .removeData("layout")
2989 .unbind("."+ sID) // remove ALL Layout events
2995 // loop all panes to remove layout classes, attributes and bindings
3000 …// do NOT reset container CSS if is a 'pane' (or 'content') in an outer-layout - ie, THIS layout i…
3009 // trigger plugins for this layout, if there are any
3010 runPluginCallbacks( Instance, $.layout.onDestroy );
3016 // RE-CREATE: myLayout = myLayout.container.layout( myLayout.options );
3022 // if this is a child layout, CLEAR the child-pointer in the parent
3025 var layout = parentPane.pane.data("parentLayout")
3026 , key = layout.options.instanceKey || 'error';
3028 parentPane.children[key] = layout.children[ parentPane.name ].children[key] = null;
3036 * Remove a pane from the layout - subroutine of destroy()
3063 , d = "layout"
3069 // FIRST destroy the child-layout(s)
3073 child.destroy(true);// tell child-layout to destroy ALL its child-layouts too
3089 var root = o.paneClass // default="ui-layout-pane"
3090 , pRoot = root +"-"+ pane // eg: "ui-layout-pane-west"
3098 // remove all Layout classes from pane-element
3105 .unbind("."+ sID) // remove ALL Layout events
3110 // do NOT reset CSS if this pane/content is STILL the container of a nested layout!
3111 // the nested layout will reset its 'container' CSS when/if it is destroyed
3113 // a content-div may not have a specific width, so give it one to contain the Layout
3116 child.resizeAll(); // resize the Layout
3121 // remove pane AFTER content in case there was a nested layout
3310 // if pane has been initialized, but NOT the complete layout, close pane instantly
3431 if (o.resizable && $.layout.plugins.draggable)
3604 if (o.resizable && $.layout.plugins.draggable)
3641 // ALSO call onresize because layout-size *may* have changed while pane was closed
3698 else if (o.preventPrematureSlideClose && evt && $.layout.isMouseOverElem(evt, $Ps[pane]))
3917 // handles situation where nested layout was 'hidden' when initialized
3919 if ($.layout.cssNum( $R, c.side ) != pos) $R.css( c.side, pos );
4016 // onresize_start callback CANNOT cancel resizing because this would break the layout!
4024 var fx = $.layout.effects.size[pane] || $.layout.effects.size.all
4160 , visCSS = $.layout.showInvisibly($P)
4187 // during layout init, try to shrink east/west panes to make room for center
4299 // cannot size layout when 'container' is hidden or collapsed
4345 // trigger all individual pane callbacks AFTER layout has finished resizing
4358 * Whenever a pane resizes or opens that has a nested layout, trigger resizeAll
4439 , $Fs = $C.nextAll().not(".ui-layout-mask").not(ignore || ":lt(0)") // not :lt(0) = ALL
4507 left = $.layout.cssNum($P, "left")
4521 //, top: $.layout.cssNum($Ps["center"], "top")
4750 // transfer element pointers and data to NEW Layout keys
4819 // change classNames on the pane, eg: ui-layout-pane-east ==> ui-layout-pane-west
4857 * @param {string} pane These are the params returned to callbacks by layout()
4861 if ($.layout.plugins.buttons)
4863 $.layout.buttons.setPinState(Instance, $(selector), pane, doPin);
5036 * CREATE/RETURN LAYOUT
5046 // Users retrieve Instance of a layout with: $N.layout() OR $N.data("layout")
5047 // return the Instance-pointer if layout has already been initialized
5048 if ($N.data("layoutContainer") && $N.data("layout"))
5049 return $N.data("layout"); // cached pointer
5060 , sID = state.id // alias for unique layout ID/namespace - eg: "layout435"
5065 // layout data
5069 , container: $N // property - object pointers for layout container
5094 …, removePane: removePane // method - pass a 'pane' to remove from layout, add 'true' to delete …
5095 …, createChildren: createChildren // method - pass a 'pane' and (optional) layout-options (OVERRID…
5096 , refreshChildren: refreshChildren // method - pass a 'pane' and a layout-instance
5107 // layout control
5123 // create the border layout NOW
5124 if (_create() === 'cancel') // onload_start callback returned false to CANCEL layout creation
5126 …else // true OR false -- if layout-elements did NOT init (hidden or do not exist), can auto-init l…
5138 * jquery.layout.state 1.2
5147 * @requires: UI Layout 1.4.0 or higher
5150 * @see: http://groups.google.com/group/jquery-ui-layout
5154 if (!$.layout) return;
5161 * This creates $.ui.cookie so Layout does not need the cookie.jquery.js plugin
5162 * NOTE: This utility is REQUIRED by the layout.state plugin
5164 * Cookie methods in Layout are created as part of State Management
5180 if (data[0] == name) // found the layout cookie
5240 * @example $(el).layout({
5247 …* @example $(el).layout({ stateManagement__enabled: true }) // enable auto-state-management using …
5248 * @example $(el).layout({ stateManagement__cookie: { name: "appLayout", path: "/" } })
5249 …* @example $(el).layout({ stateManagement__cookie__name: "appLayout", stateManagement__cookie__pat…
5255 * @example var JSON = myLayout.readState(); // CURRENT Layout State
5256 * @example var JSON = myLayout.readCookie(); // SAVED Layout State (from cookie)
5257 …ample var JSON = myLayout.state.stateData; // LAST LOADED Layout State (cookie saved in layout.sta…
5264 // tell Layout that the state plugin is available
5265 $.layout.plugins.stateManagement = true;
5267 // Add State-Management options to layout.defaults
5268 $.layout.defaults.stateManagement = {
5271 , autoLoad: true // Load the state-cookie when Layout inits?
5272 , animateLoad: true // animate panes when loading state into an active layout
5279 name: "" // If not specified, will use Layout.name, else just "Layout"
5287 // Set stateManagement as a 'layout-option', NOT a 'pane-option'
5288 $.layout.optionsMap.layout.push("stateManagement");
5289 // Update config so layout does not move options into the pane-default branch (panes)
5290 $.layout.config.optionRootKeys.push("stateManagement");
5295 $.layout.state = {
5298 * Get the current layout state and save it to a cookie
5312 $.ui.cookie.write( oC.name || o.name || "Layout", $.layout.state.encodeJSON(data), oC );
5323 $.ui.cookie.clear( o.stateManagement.cookie.name || o.name || "Layout" );
5333 var c = $.ui.cookie.read( o.stateManagement.cookie.name || o.name || "Layout" );
5335 return c ? $.layout.state.decodeJSON(c) : {};
5344 var c = $.layout.state.readCookie(inst); // READ the cookie
5353 * Update layout options from the cookie, if one exists
5363 data = inst.state.stateData = $.layout.transformData( data ); // panes = default subkey
5374 * layout NOT initialized, so just update its options
5380 $.each($.layout.config.allPanes, function (idx, pane) {
5383 // update CURRENT layout-options with saved state data
5388 * layout already initialized, so modify layout's configuration
5393 $.each($.layout.config.borderPanes, function (idx, pane) {
5440 * Get the *current layout state* and return it as a hash
5442 * @param {Object=} inst // Layout instance to get state for
5455 , panes = $.layout.config.allPanes
5486 // ONLY read state from an initialize layout
5488 branch.children[ key ] = $.layout.state.readState( child );
5489 // if we have PREVIOUS (onLoad) state for this child-layout, KEEP IT!
5536 var s = $.layout.state
5552 // readState - returns hash of current layout-state
5604 // add state initialization method to Layout's onCreate array of functions
5605 $.layout.onCreate.push( $.layout.state._create );
5606 $.layout.onUnload.push( $.layout.state._unload );
5613 * @preserve jquery.layout.buttons 1.0
5622 * @dependancies: UI Layout 1.3.0.rc30.1 or higher
5624 * @support: http://groups.google.com/group/jquery-ui-layout
5631 if (!$.layout) return;
5634 // tell Layout that the state plugin is available
5635 $.layout.plugins.buttons = true;
5637 // Add State-Management options to layout.defaults
5638 $.layout.defaults.autoBindCustomButtons = false;
5639 // Set stateManagement as a layout-option, NOT a pane-option
5640 $.layout.optionsMap.layout.push("autoBindCustomButtons");
5642 var lang = $.layout.language;
5647 $.layout.buttons = {
5654 * Searches for .ui-layout-button-xxx elements and auto-binds them as layout-buttons
5659 var pre = "ui-layout-button-"
5660 , layout = inst.options.name || ""
5663 $.each($.layout.buttons.config.borderPanes.split(","), function (ii, pane) {
5665 … // if button was previously 'bound', data.layoutName was set, but is blank if layout has no 'name'
5667 if (name == undefined || name === layout)
5679 * - ui-layout-button-pin
5680 * - ui-layout-pane-button-toggle
5681 * - ui-layout-pane-button-open
5682 * - ui-layout-pane-button-close
5684 …* @param {(string|!Object)} selector jQuery selector (or element) for button, eg: ".ui-layout-nor…
5696 else if ($.layout.buttons.config.borderPanes.indexOf(pane) === -1) { // invalid 'pane' sepecified
5703 .data("layoutName", o.name); // add layout identifier - even if blank!
5710 * NEW syntax for binding layout-buttons - will eventually replace addToggle, addOpen, etc.
5712 …* @param {(string|!Object)} sel jQuery selector (or element) for button, eg: ".ui-layout-north .t…
5717 var _ = $.layout.buttons;
5732 …* @param {(string|!Object)} selector jQuery selector (or element) for button, eg: ".ui-layout-nort…
5737 $.layout.buttons.get(inst, selector, pane, "toggle")
5748 …* @param {(string|!Object)} selector jQuery selector (or element) for button, eg: ".ui-layout-nort…
5753 $.layout.buttons.get(inst, selector, pane, "open")
5765 …* @param {(string|!Object)} selector jQuery selector (or element) for button, eg: ".ui-layout-nort…
5769 $.layout.buttons.get(inst, selector, pane, "close")
5783 * - ui-layout-pane-pin
5784 * - ui-layout-pane-west-pin
5785 * - ui-layout-pane-pin-up
5786 * - ui-layout-pane-west-pin-up
5788 …* @param {(string|!Object)} selector jQuery selector (or element) for button, eg: ".ui-layout-nort…
5792 var $E = $.layout.buttons.get(inst, selector, pane, "pin");
5796 $.layout.buttons.setPinState(inst, $(this), pane, (s.isSliding || s.isClosed));
5802 $.layout.buttons.setPinState(inst, $E, pane, (!s.isClosed && !s.isSliding));
5815 * @param {string} pane These are the params returned to callbacks by layout()
5840 * @param {string} pane These are the params returned to callbacks by layout()
5844 // REAL METHOD IS _INSIDE_ LAYOUT - THIS IS HERE JUST FOR REFERENCE
5846 $.layout.buttons.setPinState(inst, $(selector), pane, doPin);
5852 // ADD Button methods to Layout Instance
5854 …bindButton: function (selector, action, pane) { return $.layout.buttons.bind(inst, selector, acti…
5856 …, addToggleBtn: function (selector, pane, slide) { return $.layout.buttons.addToggle(inst, selecto…
5857 …, addOpenBtn: function (selector, pane, slide) { return $.layout.buttons.addOpen(inst, selector, …
5858 …, addCloseBtn: function (selector, pane) { return $.layout.buttons.addClose(inst, selector, pane);…
5859 , addPinBtn: function (selector, pane) { return $.layout.buttons.addPin(inst, selector, pane); }
5864 var pane = $.layout.buttons.config.borderPanes[i];
5870 $.layout.buttons.init(inst);
5879 // add initialization method to Layout's onLoad array of functions
5880 $.layout.onLoad.push( $.layout.buttons._load );
5881 //$.layout.onUnload.push( $.layout.buttons._unload );
5889 * jquery.layout.browserZoom 1.0
5898 * @requires: UI Layout 1.3.0.rc30.1 or higher
5900 * @see: http://groups.google.com/group/jquery-ui-layout
5907 // tell Layout that the plugin is available
5908 $.layout.plugins.browserZoom = true;
5910 $.layout.defaults.browserZoomCheckInterval = 1000;
5911 $.layout.optionsMap.layout.push("browserZoomCheckInterval");
5916 $.layout.browserZoom = {
5920 if ($.layout.browserZoom.ratio() !== false)
5921 $.layout.browserZoom._setTimer(inst);
5925 // abort if layout destroyed or browser does not need this check
5936 var d = $.layout.browserZoom.ratio();
5942 $.layout.browserZoom._setTimer(inst);
5952 , b = $.layout.browser
5974 // add initialization method to Layout's onLoad array of functions
5975 $.layout.onReady.push( $.layout.browserZoom._init );
5984 * UI Layout Plugin: Slide-Offscreen Animation
5991 * Requires Layout 1.3.0.RC30.1 or later for Close offscreen
5992 * Requires Layout 1.3.0.RC30.5 or later for Hide, initClosed & initHidden offscreen
5996 * @preserve jquery.layout.slideOffscreen-1.1.js
6004 $.layout.defaults.panes.useOffscreenClose = false; // user must enable when needed
6006 $.layout.defaults.panes.fxName = "slideOffscreen";
6009 if ($.layout.plugins)
6010 $.layout.plugins.effects.slideOffscreen = true;
6013 $.layout.effects.slideOffscreen = $.extend(true, {}, $.layout.effects.slide);
6033 , offscrn = $.layout.config.offscreenCSS || {}
6034 , keyLR = $.layout.config.offscreenReset