Commit Graph

692 Commits

Author SHA1 Message Date
Andy Joslin
4c9a4c0c62 refactor(anchorScroll): only get element ids under scrollEl 2014-02-09 18:06:05 -05:00
Andy Joslin
c2bbd9e96e feat($ionicScrollDelegate): add .anchorScroll() function
Scrolls to the location of element with id matching $location.hash(). If
$location.hash() is blank or the id does not exist, it will scroll to
the top.
2014-02-09 11:37:30 -05:00
Andy Joslin
a970f0bdc3 feat(domUtil): add getPositionInParent function
Find an element's offset, then add it to the offset of the parent
until we are at the direct child of parentEl.
Use-case: find scroll offset of any element within a scroll container
2014-02-09 11:36:15 -05:00
Andy Joslin
dc67300547 test(angularOverrides): add tests from jqLite, pass jshint 2014-02-09 11:31:00 -05:00
Adam Bradley
8dd2cd25bd experiment w/ using classList.remove for removeClass 2014-02-08 22:11:13 -06:00
Adam Bradley
92b7669b2e experiment w/ using classList to reduce DOM manipulations 2014-02-08 21:45:41 -06:00
Adam Bradley
84a8e79b21 create dom trace debug tool 2014-02-08 21:45:41 -06:00
Adam Bradley
2cdc8ba925 back button defaulted to hide 2014-02-08 21:45:41 -06:00
Andy Joslin
8581d162a3 refactor(content): set saved-scroll after timeout, only set valid values
Addresses #439
2014-02-08 00:19:03 -05:00
Andy Joslin
7f9bfb5a94 feat(sideMenuContent): watch drag-content attribute 2014-02-07 17:00:14 -05:00
Andy Joslin
b11e0f512b feat(tabs): allow tab badge-style attribute to set badge class 2014-02-07 13:16:02 -05:00
Andy Joslin
c41e5371e7 refactor(scroll): make refresher be detected after timeout 2014-02-07 12:07:41 -05:00
Andy Joslin
0facb120c7 feat(tab): allow html in tab title attribute
Closes #528
2014-02-06 22:25:12 -05:00
Adam Bradley
2d39418d0b fix(backButton): Do not show back button if no attributes set, closes #549 2014-02-06 20:31:47 -06:00
Andy Joslin
2ac71aa8ee chore: delete unused test file 2014-02-06 18:36:18 -05:00
Adam Bradley
fc4f1b7c61 use className instead of classList 2014-02-06 16:49:21 -06:00
Adam Bradley
4808e80ddf fix(navBar): Remove duplicate back button arrows, closes #547 2014-02-06 16:30:00 -06:00
Adam Bradley
2eab747d47 feat(toggle): Disable toggle w/ ng-disabled, closes #541 2014-02-06 15:57:25 -06:00
Andy Joslin
d15905ff4e chore: git add a file 2014-02-06 16:14:04 -05:00
Andy Joslin
e755623331 feat(ionic): remove angular-sanitize (ngSanitize) as dependency
Add small bindHtmlUnsafe directive without html checking
2014-02-06 15:50:12 -05:00
Andy Joslin
1fd3f39bb5 chore(): make files pass jshint (; errors) 2014-02-06 15:44:48 -05:00
Andy Joslin
7f4b28d9da feat(list): reordering scrolls page, reordering performance better
Fixes #521. Reordering now uses webkitTransform instead of
element.style.left.  Additionally, as you drag the drag-element to the
top or bottom of the scroll-area, it will scroll it up or down as
allowed.

Refactors necessary: Common code from `<content>` and `<scroll>` moved
into js/ext/angular/controllers/ionicScrollController.  Then `<content>`
and `<scroll>` expose the controller, and `<list>` can require it.

`<list>` then uses the controller (if exists) to pass the scrollView and
scrollEl to ReorderDrag, and ReorderDrag uses that to scroll.

Additionally, js/ext/angular/test/controller/ionicScrollController tests
much functionality that was untested before.
2014-02-06 15:04:23 -05:00
Adam Bradley
5ebbbab5e7 run tapPolyfill for mouse pointerType too 2014-02-06 13:58:53 -06:00
Adam Bradley
01a456a4ad more tests for click 2014-02-06 13:58:53 -06:00
Andy Joslin
ea289b81c6 fix(ionicScrollDelegate): trigger resize before scrolling to top/bottom
Closes #522
2014-02-06 09:51:35 -05:00
Andy Joslin
0fe4486737 feat(ionicToggle): allow ngDisabled binding 2014-02-06 08:48:12 -05:00
Adam Bradley
e96a77e5ac wrap exitApp in cordova ready 2014-02-05 20:49:36 -06:00
Adam Bradley
aa93047a9e remove test from unused tabBar directive 2014-02-05 20:49:36 -06:00
Adam Bradley
f6c94579b5 remove unused tabBar directive 2014-02-05 19:59:39 -06:00
Andy Joslin
990d14e8fe fix(navView): if !$animate.enabled(), do not animate
Closes #426
2014-02-05 14:41:31 -05:00
Adam Bradley
2f6ac4a986 chore(release): v0.9.23 2014-02-05 12:07:01 -05:00
UniRing
bc927e57e7 feat(tabs): allow badges on tabbar via bound badge attr 2014-02-05 11:38:06 -05:00
Andy Joslin
40fcd01e9b fix(ionicView): erase saved scroll for a view on back 2014-02-05 10:42:14 -05:00
Adam Bradley
24c382bd9b feat(tabs): clicking tab item again navigates to tab's home 2014-02-04 23:01:43 -06:00
Andy Joslin
456dc2b9f2 chore(build): more ci server automation 2014-02-04 22:33:42 -05:00
Adam Bradley
738ace8969 fix(navBar): Back button w/ text to use inner <i> 2014-02-04 20:57:57 -06:00
Adam Bradley
ed848dde90 fix(ionicTouch): use ionic.tapElement 2014-02-04 13:07:19 -06:00
Andy Joslin
2d1b71c8e2 feat(content): remember scroll of previous page
`content` directive stores scroll in view page history.

The history is passed down through $viewContentLoaded event, which is
broadcasted by navView directive when it loads a page.
2014-02-04 08:48:03 -05:00
Andy Joslin
479175bf5d refactor(view): use nextUid from angular to generate unique ids
Math.random() is unreliable, produces duplicates, and numbers can
overflow if you use them for long enough.
2014-02-04 08:46:02 -05:00
Andy Joslin
59c10d4f92 fix(scrollView): if bouncing past boundaries, do not stick.
Closes #482

Zynga Scroller slowly lowers the acceleration of scroll as soon as you pass the
boundaries. Once the acceleration reaches zero, zynga will 'flip' the
acceleration in the other direction and scroll back to within the
boundaries (bounce effect).

The problem is, sometimes as it slowly lowers the
acceleration it will get *near zero*, but not reach zero.  When
acceleration gets close enough to zero, zynga stops the scrolling
because it deems it 'too slow'.

Now, the scrolling acceleration will 'flip' and go back towards being
in boundaries (bounce) when the scrolling is below a certain minimum,
not just when it is below zero.
2014-02-03 12:06:33 -05:00
Adam Bradley
2053111312 fix toggle for android 2014-02-01 00:26:53 -06:00
Adam Bradley
00f6b17b7f toggle/checkbox tap improvements 2014-02-01 00:15:10 -06:00
Adam Bradley
7352be9010 set major and minor platform versions in body css 2014-01-31 20:57:26 -06:00
Adam Bradley
f37b196ff8 refactor ionic.Platform methods 2014-01-31 20:36:39 -06:00
Peter C
27f3d565f4 Merge pull request #501 from uniring/nav-bar-title
Allows a view to update the navbar title if his title changes
2014-01-31 18:13:22 -08:00
Adam Bradley
25a9e527af ionic.Platform.exitApp(), always run onPlatformReady() 2014-01-31 11:55:31 -06:00
Adam Bradley
2add26afbb readyCallbacks array and platform() method to get name 2014-01-31 10:45:31 -06:00
UniRing
62698fdc69 Revert "Added support for badges in TabBar icons."
This reverts commit 1bd89a86f5.
2014-01-31 17:43:58 +01:00
UniRing
1bd89a86f5 Added support for badges in TabBar icons.
Added support for TabBar icon badges using the attribute badge in the
tab directive.

Ex: <tab icon-on="icon ion-ios7-person" icon-off="icon
ion-ios7-person-outline" href="#/tab/myprofile" badge="3">

I’ve used the colors of the TabBar itself but inverted for the badge. I
don’t know if you’ll want to merge this straight on but I think it can
help as a start point for this feature. I’ve tried to do it as
integrated as possible.
2014-01-31 17:36:36 +01:00
Adam Bradley
95c8ddf301 Update $ionicPlatform.ready() 2014-01-31 10:31:42 -06:00