Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move milestone data to top level of programs #646

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,41 +1,41 @@
/**
* UI Layout Callback: resizeTabLayout
*
* Requires Layout 1.3.0.rc29.15 or later
*
* This callback is used when a tab-panel is the container for a layout
* The tab-layout can be initialized either before or after the tabs are created
* Assign this callback to the tabs.show event:
* - if the layout HAS been fully initialized already, it will be resized
* - if the layout has NOT fully initialized, it will attempt to do so
* - if it cannot initialize, it will try again next time the tab is accessed
* - it also looks for ANY visible layout *inside* teh tab and resize/init it
*
* SAMPLE:
* < jQuery UI 1.9: $("#elem").tabs({ show: $.layout.callbacks.resizeTabLayout });
* > jQuery UI 1.9: $("#elem").tabs({ activate: $.layout.callbacks.resizeTabLayout });
* $("body").layout({ center__onresize: $.layout.callbacks.resizeTabLayout });
*
* Version: 1.3 - 2013-01-12
* Author: Kevin Dalman ([email protected])
*/
;(function ($) {
var _ = $.layout;
// make sure the callbacks branch exists
if (!_.callbacks) _.callbacks = {};
// this callback is bound to the tabs.show event OR to layout-pane.onresize event
_.callbacks.resizeTabLayout = function (x, ui) {
// may be called EITHER from layout-pane.onresize OR tabs.show/activate
var $P = ui.jquery ? ui : $(ui.newPanel || ui.panel);
// find all VISIBLE layouts inside this pane/panel and resize them
$P.filter(":visible").find(".ui-layout-container:visible").andSelf().each(function(){
var layout = $(this).data("layout");
if (layout) {
layout.options.resizeWithWindow = false; // set option just in case not already set
layout.resizeAll();
}
});
};
/**
* UI Layout Callback: resizeTabLayout
*
* Requires Layout 1.3.0.rc29.15 or later
*
* This callback is used when a tab-panel is the container for a layout
* The tab-layout can be initialized either before or after the tabs are created
* Assign this callback to the tabs.show event:
* - if the layout HAS been fully initialized already, it will be resized
* - if the layout has NOT fully initialized, it will attempt to do so
* - if it cannot initialize, it will try again next time the tab is accessed
* - it also looks for ANY visible layout *inside* teh tab and resize/init it
*
* SAMPLE:
* < jQuery UI 1.9: $("#elem").tabs({ show: $.layout.callbacks.resizeTabLayout });
* > jQuery UI 1.9: $("#elem").tabs({ activate: $.layout.callbacks.resizeTabLayout });
* $("body").layout({ center__onresize: $.layout.callbacks.resizeTabLayout });
*
* Version: 1.3 - 2013-01-12
* Author: Kevin Dalman ([email protected])
*/
;(function ($) {
var _ = $.layout;

// make sure the callbacks branch exists
if (!_.callbacks) _.callbacks = {};

// this callback is bound to the tabs.show event OR to layout-pane.onresize event
_.callbacks.resizeTabLayout = function (x, ui) {
// may be called EITHER from layout-pane.onresize OR tabs.show/activate
var $P = ui.jquery ? ui : $(ui.newPanel || ui.panel);
// find all VISIBLE layouts inside this pane/panel and resize them
$P.filter(":visible").find(".ui-layout-container:visible").andSelf().each(function(){
var layout = $(this).data("layout");
if (layout) {
layout.options.resizeWithWindow = false; // set option just in case not already set
layout.resizeAll();
}
});
};
})( jQuery );
Loading