Skip to content

Commit

Permalink
MDL-44161 Javascript: Include upstream patch for modal widget positio…
Browse files Browse the repository at this point in the history
…n jump

This is courtesty of the upstream pull request yui/yui3#1636
  • Loading branch information
andrewnicols committed Feb 14, 2014
1 parent 692d247 commit 2173d55
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lib/yuilib/3.13.0/widget-modality/widget-modality-coverage.js

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion lib/yuilib/3.13.0/widget-modality/widget-modality-debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ var WIDGET = 'widget',
SYNC_UI = 'syncUI',
BOUNDING_BOX = 'boundingBox',
CONTENT_BOX = 'contentBox',
RENDERED = 'rendered',
VISIBLE = 'visible',
Z_INDEX = 'zIndex',
CHANGE = 'Change',
Expand Down Expand Up @@ -336,7 +337,9 @@ var WIDGET = 'widget',
if (isModal) {
maskNode.show();
Y.later(1, this, '_attachUIHandlesModal');
this._focus();
if (this.get(RENDERED)) {
this._focus();
}
}


Expand Down
4 changes: 2 additions & 2 deletions lib/yuilib/3.13.0/widget-modality/widget-modality-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion lib/yuilib/3.13.0/widget-modality/widget-modality.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ var WIDGET = 'widget',
SYNC_UI = 'syncUI',
BOUNDING_BOX = 'boundingBox',
CONTENT_BOX = 'contentBox',
RENDERED = 'rendered',
VISIBLE = 'visible',
Z_INDEX = 'zIndex',
CHANGE = 'Change',
Expand Down Expand Up @@ -336,7 +337,9 @@ var WIDGET = 'widget',
if (isModal) {
maskNode.show();
Y.later(1, this, '_attachUIHandlesModal');
this._focus();
if (this.get(RENDERED)) {
this._focus();
}
}


Expand Down

0 comments on commit 2173d55

Please sign in to comment.