Commit Graph

1638 Commits

Author SHA1 Message Date
Jeremy Wilken
9ed2b00201 Fix incorrect use of title in docs for ionNavView
The `title` attribute is no longer evaluated, and should just be a simple string value. It is correct in the ionView docs, but not here.
2014-09-20 19:26:09 -05:00
ruioliveiras
eba588337c docs(modal): note angular template syntax regarding inline templates 2014-09-18 11:21:47 -05:00
Adam Bradley
6f4243255a Merge pull request #2239 from yalamber/patch-1
docs(infiniteScroll): correct $stateChangeSuccess
2014-09-17 21:49:24 -05:00
Perry Govier
cb06643403 fix(sideMenu): allow edge-drag-threshold for right side menus. Closes #2081 2014-09-17 17:11:21 -05:00
Perry Govier
767ce6a3b4 fix(loading): prevent spinners in loading view from causing reflows when hidden. Closes #2013 2014-09-17 13:37:51 -05:00
yalamber
8f7a148890 Update infiniteScroll.js
Seems like it should be $stateChangeSuccess instead of stateChangeSuccess
2014-09-18 00:16:48 +05:45
Timothy Nott
f5e0ea9697 Update gesture.js
Make this document more findable via a common search phrase -- "long touch"
2014-09-17 10:31:51 -05:00
Adam Bradley
03086ed228 fix(nav): prevent flickers between views
By default the scroll bar is being created for each view, then
immediately it adds the .scroll-bar-fade-out class. On every transition
you sometimes saw the scroll bar appear then fade away quickly. Sure
that was annoying and has been fixed to prevent that, but the real
issue is that on every view transition, the scroll bar’s opacity
transition fired off a transitionend event, which bubbled up to the
view and messed with Angular’s $animate. If timed out correctly, at the
time the scroll bar’s transitionend event bubbled up, and an element
was actively leaving the view, it would confuse $animate and cause the
leave animation to abruptly end, which caused an ugly flicker.
2014-09-16 22:58:22 -05:00
Perry Govier
83d58d3873 Merge branch 'master' of github.com:driftyco/ionic 2014-09-16 22:55:26 -05:00
Perry Govier
e608bada6d amend(refresher): fix for if height is unknowable, and earlier commit changes lost in scrollView 2014-09-16 22:55:13 -05:00
Adam Bradley
a1af665feb Merge pull request #2230 from chaffeqa/patch-2
fix(load): correctly handle window loaded states
2014-09-16 19:59:21 -05:00
chaffeqa
6b29d44ce3 Correctly handle window loaded states
Previously if this script was executed after the window was loaded, none of the callbacks would fire.

See https://developer.mozilla.org/en-US/docs/Web/API/document.readyState for definition of detecting the `load` event.

TODO: Potentially this is redundent, since maybe using `ionic.DomUtil.ready` would mean one less listener.  However I don't know if the listeners attached to `ionic.Platform.ready` require the `document.readyState` to be `complete` rather than only `interactive`.

Linked to #2229
2014-09-16 19:11:19 -04:00
chaffeqa
1f96d971f1 Correctly handle DOM Ready states
Previously, if the script was loaded while in `document.readyState` of `interactive`, the `domReady` function is never called.

See https://developer.mozilla.org/en-US/docs/Web/API/document.readyState for explanation of the proper detection of `DOMContentLoaded`
2014-09-16 19:03:35 -04:00
Perry Govier
db27fb116c feat(refresher): Improve refresher animation. Allow pulling icon rotation to be disabled. 2014-09-16 16:22:02 -05:00
Adam Bradley
fe9f43d17f fix(titles): error during quick transition changes 2014-09-16 10:23:50 -05:00
Mike Hartington
60b3f861f1 docs(ion-list): include list types 2014-09-16 10:15:39 -04:00
Adam Bradley
046ad53b20 feat(cordovaEvents): $ionicPlatform.on method
Create $ionicPlatform.on(type, callback) to make it easier to add
Cordova event listeners. Closes #2219
2014-09-16 08:55:00 -05:00
Adam Bradley
37d75f7f5d style(tabs): fix typo 2014-09-16 07:48:42 -05:00
Adam Bradley
68de8ed910 fix(history): tabs lose history after switching tabs
It was possible that when switching between tabs, and creating a
navigation history in one of the tabs, then switching tabs again, it
could clear out the individual tab stacks under certain scenarios.
Closes #1978
2014-09-16 00:13:29 -05:00
Adam Bradley
1c62ed7fca chore(): remove console.log 2014-09-16 00:00:08 -05:00
Adam Bradley
20d567f81c fix(click): remove native click prevent 400ms later
When an actionsheet/popup is open, everything under it has
`pointer-events:none`. However, once they are removed then the click
prevent was removed immediately too, but the click that comes in 300ms
later was still firing whatever would have been underneath the
actionsheet/popup. Instead, wait 400ms before removing the click
prevent, which would block the native click. Closes #2204
2014-09-15 00:00:59 -05:00
Adam Bradley
6f79a5e5c8 fix(exposeAsideWhen): disable with isEnabled=false
Closes #2210
2014-09-14 23:38:35 -05:00
Adam Bradley
74de015c22 fix(keyboard): android scroll stuck
When a state change happens, ensure the keyboard is hidden. When a
keyboard is hidden, ensure all pending timers our cleared. When
resetting scrollView, ensure it’s only doing it when it has to.
For testing: #1670 #2192
2014-09-14 23:18:57 -05:00
Adam Bradley
0420e6eb2d refactor(popover): popover-top as the default 2014-09-14 21:08:21 -05:00
Adam Bradley
db83d6638e refactor(tabs): prevent unnecessary updates during destroy
If the containing ionTabs directive is being destroyed, then child
ionTab directives should not don't bother going through its
controller’s `remove` method, which selects a new active tab as each
ionTab is being destroyed. By selecting a new active tab as each tab is
removed, it causes unnecessary view loads, transitions and multiple
`viewState.changeHistory` events.
2014-09-12 23:05:28 -05:00
Adam Bradley
8883c6ccc5 fix(scroll): ensure scrollView objects exist
Check if scrollView is null when switching off of tabs view. #2181
2014-09-12 23:05:28 -05:00
Perry Govier
18775ae169 chore(collection repeat): commenting out noisy console log 2014-09-12 11:19:47 -05:00
Perry Govier
5e8250b119 fix(scrollView): check that element has not yet been GC'd before removing event listeners in $destroy 2014-09-12 11:14:39 -05:00
Adam Bradley
ed3e9e30ce fix(splitView): disable menu toggles on exposed aside
Closes #2182
2014-09-11 22:05:47 -05:00
Adam Bradley
8b1245feb7 Merge pull request #2055 from bianchimro/issue-2053
fix(reorder): remove correct class w/in setButtonShown
2014-09-11 21:08:22 -05:00
Adam Bradley
b239eb9ed3 fix(menuClose): do not close if aside exposed 2014-09-11 15:56:02 -05:00
Adam Bradley
c40db31625 Merge pull request #2186 from IonDriveSoftware/master
fix(sideMenu): set default width
2014-09-11 15:40:59 -05:00
Perry Govier
cb9b81d57e fix(templateCache): make sure $state is passed config options before checking what they are 2014-09-11 15:25:49 -05:00
sharky101
7751b16ea6 fix(sideMenu, exposeAsideWhen): set default width
ion-side-menu with explicit width and expose-aside-when="large”
previously loaded the sidebar with a fixed width of 275px.
2014-09-11 14:15:46 +01:00
Adam Bradley
02a29f872e style(): else on same line 2014-09-10 14:12:54 -05:00
Adam Bradley
74bc1ce17b Merge pull request #2154 from karbon001/master
refactor(keyboard): add WP8 support for keyboard show
2014-09-10 13:27:51 -05:00
Adam Bradley
77847f4963 fix(keyboard): screen.height fallback for window.innerHeight
Closes #2168
2014-09-10 12:50:51 -05:00
Adam Bradley
ba3600dfb4 fix(scroll): calculate padding-bottom
Closes #2174
2014-09-10 12:24:10 -05:00
Perry Govier
b1f94da27e fix(platform): fullscreen method will not offset footer by 20px 2014-09-09 17:05:03 -05:00
Adam Bradley
59c8d5e1be Merge pull request #2160 from cfjedimaster/patch-1
docs(platform): reminder cordova features dont work within browser
2014-09-08 12:27:50 -05:00
Justin Basinger
f89f010cce fix(scrollview, content): Fixed multiple memory leaks in scrollview and content 2014-09-08 12:21:49 -05:00
Raymond Camden
9c370fdd3a Update platform.js
I added a bit of detail to ready function to remind folks that - in the context of a web browser - even though ready has fired it is *NOT* going to allow for device specific features. It may be too obvious, but I really think a reminder here will help.
2014-09-08 11:19:04 -05:00
Krzysztof Kawalec
2cd4156a6c Adding support for the state show in hardware keyboard for WP8. 2014-09-06 20:08:37 +02:00
Perry Govier
d3c8a1b2a4 fix(back button): do not animate back button transition if the title doesn't change. Fixes #1858 2014-09-05 16:01:59 -05:00
Adam Bradley
5605317936 refactor(ionicNamespace): create window.ionic
Build processes may also be using the window.ionic object, but it’ll
have to create its own because ionic.js may not have run yet. Use the
existing window.ionic obj if it exists, otherwise create it.
2014-09-04 23:55:12 -05:00
Adam Bradley
150f116e53 refactor(platform): do not console.error on device get
With user agent fallbacks, its unnecessary to print out errors if the
device plugin isn’t there.
2014-09-04 23:38:01 -05:00
Perry Govier
6a4f381fdd Merge pull request #1917 from schmoofer/master
fix(modal): eliminate flicker when using fade-in/out animation style
2014-09-04 18:47:33 -05:00
wroscoe
cbb28dbab3 update link to animations 2014-09-02 11:46:52 -07:00
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
df57858521 fix(menuContent): gestures do not stop_browser_behavior
The gestures which were being added to side menu content were also
adding the `disable-user-behavior` class, which disabled
contenteditable elements. Now passing in the gesture option
stop_browser_behavior=false, along with adding the options param to the
gestures service. Fixes #421
2014-08-29 22:25:55 -05:00