Commit Graph

119 Commits

Author SHA1 Message Date
Adam Bradley
caf1272186 fix(scroll): remove isContentEditable from ignoreScrollStart
If an element isContentEditable, do not ignoreScrollStart incase users
are using contenteditable elements to scroll. This may have originally
been put in because it disabled text selection, and moving the text
cursor on touch. But this doesn’t seem to be the case anymore, so it
may have been put in for platform versions we no longer support. Also
fix the data-prevent-scroll dataset attribute. Closes #2091
2014-08-29 23:35:07 -05:00
Adam Bradley
e9f0fcf556 refactor(clickBlock): add click-block div to body
Instead of using pointer-events: none to disable unwanted clicks which
can cause flickering, we’re now using a click-block div that covers the
view during transitions. Similar concept to pointer-events: none
applied to the body tag, but in tests its showing to be more effective
to not cause any flickers.
2014-08-27 12:56:12 -05:00
Adam Bradley
2c3f1c9f02 feat($ionicBody): service to simplify body ele interaction
Many services/directives have to interact with the body element, and
each one has to write the same long code. The $ionicBody service
provides some useful methods to clean up and reduce redundant code.
2014-08-26 22:23:07 -05:00
Adam Bradley
b69aa5485f feat(splitView): expose side menu on large viewport
Ability to keep a left menu exposed on larger viewports, such as a
landscape tablet. Added the `expose-aside-menu` attribute directive.
2014-08-26 15:00:42 -05:00
Andrew
e00e938040 test(popover): fix tests for container addition 2014-08-20 14:29:11 -06:00
Andrew
6d859f4876 fix(popup): fix alignment, backdrop not fading out 2014-08-20 14:17:19 -06:00
Perry Govier
25ee658e8b amend(loading): simpler/more clean fix for #1914 2014-08-20 13:04:48 -05:00
Adam Bradley
04812a2da9 style(): move listController.unit.js to correct dir 2014-08-20 11:28:15 -05:00
Adam Bradley
b31f4e8e3f refactor(sideMenu): move controller logic to $ionicSideMenus 2014-08-20 11:09:48 -05:00
Andrew
4595fd3cc4 refactor($ionicTabsDelegate): for .select() take away second argument
Closes #1682
2014-08-20 10:03:45 -06:00
Perry Govier
65aece2aad fix(loading): potential race condition with showing and hiding loading in same watch cycle 2014-08-19 15:07:10 -05:00
Perry Govier
cc18a64bf4 fix(reorder): item click handlers dont fire when tapping on reorder icon 2014-08-19 11:32:35 -05:00
Perry Govier
944a92b08d feat(templateCache): automatically cache template files to prevent flicker on page navigation and improve performance
State templates are cached automatically, but you can optionally cache other templates.
```js
$ionicTemplateCahce('myNgIncludeTemplate.html');
```

Optionally disable all preemptive caching with the `$ionicConfigProvider` or individual states by setting `prefetchTemplate`
in the $state definition
```js
$ionicTemplateCahce('myNgIncludeTemplate.html');
```js
  angular.module('myApp', ['ionic'])
  .config(function($stateProvider, $ionicConfigProvider) {

    // disable preemptive template caching globally
    $ionicConfigProvider.prefetchTemplates(false);

    // disable individual states
    $stateProvider
      .state('tabs', {
        url: "/tab",
        abstract: true,
        prefetchTemplate: false,
        templateUrl: "tabs-templates/tabs.html"
      })
      .state('tabs.home', {
        url: "/home",
        views: {
          'home-tab': {
            prefetchTemplate: false,
            templateUrl: "tabs-templates/home.html",
            controller: 'HomeTabCtrl'
          }
        }
      });
  });
```
2014-08-15 15:10:19 -05:00
Andrew
834e2bb173 amend($ionicConfigProvider): fix typo, add unit tests 2014-08-15 13:11:44 -06:00
Andrew
8c6d5f2c96 fix(collectionRepeat): simplify item reusing process to fix rare reuse error
Closes #1777.
2014-08-13 10:30:44 -06:00
Andrew
5e025fbb01 fix(collectionRepeat): rerender when $ionicScrollDelegate resizes
Fixes #1777
2014-08-11 10:23:49 -04:00
Perry Govier
044fac4d77 fix(popup): only override prompt input if template includes HTML 2014-08-08 15:00:19 -05:00
Perry Govier
c336e8ede8 fix(refresher): finish animating before changing icon, hide when not in use 2014-08-07 17:54:30 -05:00
Andrew
41a2124d45 test(): fix phantomjs test problems for CircleCI 2014-08-06 12:10:34 -06:00
Andrew
7ddb57e60b feat(collectionRepeat): other children of ion-content element fit in
Closes #1920. Closes #1866. Closes #1380.
2014-08-06 10:32:40 -06:00
Adam Bradley
6fbd1a4306 fix(toggle): fix toggle-class attribute
Closes #1851
2014-08-06 08:40:57 -05:00
Perry Govier
ae87c66b12 fix(popup): backdrop release fires with every close 2014-08-05 11:16:46 -05:00
Max Lynch
64641b1be0 fix(viewService): No error on clearHistory for empty history 2014-08-04 14:17:54 -05:00
Adam Bradley
c1215aa300 feat(popover): created popovers 2014-07-31 14:43:29 -05:00
Perry Govier
ddda809b57 feat(tabs): Expand striped android style tab functionality. Closes 1694 2014-07-30 15:52:53 -05:00
Perry Govier
4f6d02cfcb refactor(modal): trigger resize event on the window when modal opens
A better approach to resolving an issue with collection-repeat sizing itself properly. This keeps directives independent of eachother.
2014-07-24 14:45:40 -05:00
Perry Govier
1fbd3c5632 fix(collectionRepeat): properly display collection repeat inside a modal 2014-07-24 12:44:29 -05:00
Perry Govier
4e6ba5b818 refactor(scroll): minor tweak to make unit tests happy 2014-07-24 12:27:42 -05:00
Andrew
74711cbc36 test(): remove iit 2014-07-24 11:15:50 -06:00
Andrew
79bcfb149f test(gesture): fix gesture directive tests 2014-07-24 11:15:26 -06:00
Perry Govier
3d0a46efe8 fix(scroll): anchor scroll should scroll to IDs that are multiple levels beneath the scroll view. Closes #1804 2014-07-21 14:58:29 -05:00
Andrew
26ca840dfc feat($ionicLoading): add $ionicLoadingConfig constant for default options
Closes #1800
2014-07-21 08:22:43 -06:00
Andrew
7e20424a87 test(platform): fix unit tests for setting platform to null 2014-07-21 08:22:07 -06:00
Andrew
537b29d0bb fix(toggle): fix ngChange being reported before model changes
Closes #1349, #1741

BREAKING CHANGE:

ion-toggle no longer has an isolate scope.
This will break your toggle only if you were relying upon the toggle
having an isolate scope: if you were referencing `$parent.value` as
the ng-disabled attribute, for example.

Change your code from this:

<ion-toggle ng-disabled="{{$parent.isDisabled}}"></ion-toggle>

To this:

<ion-toggle ng-disabled="{{isDisabled}}"></ion-toggle>
2014-07-10 23:51:55 -06:00
Perry Govier
bb6976ad54 feat(tab): options 'hidden' attribute for tabs. Closes #1666, #1673 2014-07-09 17:10:43 -05:00
Andrew
4f10a72306 fix(list): make reorder/delete button animation work well on all devices 2014-07-08 11:32:43 -06:00
Andrew
b7f45e7ca5 fix(view): don't affect history when inside a modal
Closes #1667
2014-07-07 13:38:28 -06:00
Andrew
da8a24d174 test(ionList): remove tap-disabled from tests 2014-07-07 13:17:19 -06:00
Andrew
cdba48f196 fix(navBar): only add default animation if there is no custom animation
Closes #1671
2014-07-07 11:40:21 -06:00
Andrew
22a81fe82c test(list): use timeout.flush() 2014-07-06 14:29:33 -06:00
Perry Govier
7630bd419f fix(loading): Prevent clicks on modal views when loading is active. Closes #1720 2014-07-03 16:16:21 -05:00
Perry Govier
704fe402e7 fix(radio): suport ng-disabled. Closes #1684 2014-06-27 15:58:17 -05:00
Perry Govier
3e6ce1831b fix(popup): if popup is taller than the window, shrink the popup body and make it scrollable. Closes #1679 2014-06-27 11:27:06 -05:00
Andrew Joslin
b2585f19ca fix(collectionRepeat): fix scroll when item bigger than viewport
Closes #1621
2014-06-17 17:42:10 +00:00
Andrew Joslin
b4b94073d5 fix(gestureDirectives): fix problem with event being passed in 2014-06-17 13:16:31 +00:00
Andrew Joslin
22053edb46 test(navBackButton): disable android platform test 2014-06-12 15:01:05 -06:00
Andrew Joslin
bea69fe46c amend(platform-backButton): do not set icon if icon child exists 2014-06-12 09:23:30 -06:00
Andrew Joslin
cec3a42236 fix(ionNavBackButton): stop flicker when pressing back on ios 2014-06-11 16:07:38 -06:00
Max Lynch
c30be67f65 feat(platforms): Android and iOS Specific Styles and Transitions 2014-06-11 16:48:53 -05:00
Andrew Joslin
087e55f320 feat($ionicActionSheet): add cancelOnStateChange option, default true
Closes #1318

BREAKING CHANGE: $ionicActionSheet's default behavior is now to cancel
when the app's state changes.  To disable this behavior, pass
`cancelOnStateChange: false` into $ionicActionSheet.show().
2014-06-11 11:28:53 -06:00