Skip to content
This repository has been archived by the owner on May 30, 2022. It is now read-only.

Commit

Permalink
chore(build): Build v0.3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianlee44 committed Sep 25, 2014
1 parent 52306f5 commit 0f7e28e
Show file tree
Hide file tree
Showing 10 changed files with 27 additions and 13 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# v0.3.10 (2014/9/25)
## Bug Fixes
- **macPopover:** Fixed popover not changing from below to above when overflow
([52306f5e](https://github.com/StartTheShift/MacGyver/commit/52306f5e0550bb0ac6d04f4ef1489d65eea34785))


# v0.3.9 (2014/9/22)
## Bug Fixes
- **macTime:** Fixed not able to select hour and minute Revert "fix(macTime): Re-render time input view even when viewValue is the same"
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "MacGyver",
"version": "0.3.9",
"version": "0.3.10",
"main": [
"lib/img/ui-bg_flat_0_aaaaaa_40x100.png",
"lib/img/ui-bg_glass_75_ffffff_1x400.png",
Expand Down
10 changes: 7 additions & 3 deletions lib/macgyver-core.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* MacGyver v0.3.9
* MacGyver v0.3.10
* @link http://starttheshift.github.io/MacGyver
* @license MIT
*/
Expand Down Expand Up @@ -1750,7 +1750,7 @@ angular.module("Mac").provider("popoverViews", function() {
remove: "above",
add: "below"
};
} else if (offset.top + top - topScroll > $window.height()) {
} else if (offset.top + top + current.height - topScroll > $window.height()) {
action = {
remove: "below",
add: "above"
Expand All @@ -1763,6 +1763,10 @@ angular.module("Mac").provider("popoverViews", function() {
setOverflowPosition(diff);
}
}
if (action.remove && action.add) {
position = position.replace(action.remove, action.add);
}
action = {};
if (offset.left + left - leftScroll < 0) {
action = {
remove: "right",
Expand All @@ -1776,8 +1780,8 @@ angular.module("Mac").provider("popoverViews", function() {
}
if (action.remove && action.add) {
position = position.replace(action.remove, action.add);
updateOffset();
}
updateOffset();
offset.top += top;
offset.left += left;
if (options.offsetX != null) {
Expand Down
2 changes: 1 addition & 1 deletion lib/macgyver-datepicker.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* MacGyver v0.3.9
* MacGyver v0.3.10
* @link http://starttheshift.github.io/MacGyver
* @license MIT
*/
Expand Down
2 changes: 1 addition & 1 deletion lib/macgyver-filters.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* MacGyver v0.3.9
* MacGyver v0.3.10
* @link http://starttheshift.github.io/MacGyver
* @license MIT
*/
Expand Down
2 changes: 1 addition & 1 deletion lib/macgyver-string-filter.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* MacGyver v0.3.9
* MacGyver v0.3.10
* @link http://starttheshift.github.io/MacGyver
* @license MIT
*/
Expand Down
2 changes: 1 addition & 1 deletion lib/macgyver-table.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* MacGyver v0.3.9
* MacGyver v0.3.10
* @link http://starttheshift.github.io/MacGyver
* @license MIT
*/
Expand Down
10 changes: 7 additions & 3 deletions lib/macgyver.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* MacGyver v0.3.9
* MacGyver v0.3.10
* @link http://starttheshift.github.io/MacGyver
* @license MIT
*/
Expand Down Expand Up @@ -9932,7 +9932,7 @@ angular.module("Mac").provider("popoverViews", function() {
remove: "above",
add: "below"
};
} else if (offset.top + top - topScroll > $window.height()) {
} else if (offset.top + top + current.height - topScroll > $window.height()) {
action = {
remove: "below",
add: "above"
Expand All @@ -9945,6 +9945,10 @@ angular.module("Mac").provider("popoverViews", function() {
setOverflowPosition(diff);
}
}
if (action.remove && action.add) {
position = position.replace(action.remove, action.add);
}
action = {};
if (offset.left + left - leftScroll < 0) {
action = {
remove: "right",
Expand All @@ -9958,8 +9962,8 @@ angular.module("Mac").provider("popoverViews", function() {
}
if (action.remove && action.add) {
position = position.replace(action.remove, action.add);
updateOffset();
}
updateOffset();
offset.top += top;
offset.left += left;
if (options.offsetX != null) {
Expand Down
2 changes: 1 addition & 1 deletion lib/macgyver.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"author": "Adrian Lee <adrian@adrianlee.me>",
"name": "MacGyver",
"description": "A library of shared directives",
"version": "0.3.9",
"version": "0.3.10",
"homepage": "http://starttheshift.github.io/MacGyver",
"repository": {
"type": "git",
Expand Down

0 comments on commit 0f7e28e

Please sign in to comment.