Ghislain Seguin
5ced7f81cd
Added AMD text plugin
2012-01-25 15:36:49 -08:00
Ghislain Seguin
ae835d0af1
Fixes #3479
...
Added $.mobile.version
2012-01-25 15:21:02 -08:00
Ghislain Seguin
b08ff1ec6a
Removed extra newline
2012-01-25 15:21:01 -08:00
John Bender
227530a107
remove redundant compile output cleaning
2012-01-25 14:49:55 -08:00
toddparker
e47a74dd90
Changed version flag to say "1.x Unstable" on master homepage
2012-01-25 14:58:17 -05:00
scottjehl
72b0d46dff
Added updatePagePadding option to automate the use of the updatePagePadding method, with a default value of true. When true, this method calls the updatePagePadding method on webkitAnimationStart, animationstart, pageshow, and throttledresize. The animation events catch the page before it transitions in, whereas pageshow event serves the purpose of catching the page when animations are not in play, or when there's no FROM page that you're transitioning from. Lastly, the throttledresize event updates the value on resize.
...
This method still needs unit test coverage. Fixes #3484
2012-01-25 22:15:40 +07:00
scottjehl
9381ae8f09
this seems to be a little better on repaints.
2012-01-25 21:12:23 +07:00
scottjehl
99db3d039f
Merge remote branch 'origin/master'
2012-01-25 18:26:57 +07:00
scottjehl
699001a3c6
Added an experimental "updatePagePadding" method, which allows developers to adjust the page element's padding to accommodate a taller toolbar, so there is no overlap.
...
Addresses Issue #3484
Caveats:
- This method must be called when the toolbar is visible, meaning you'll see a visible jump when a page is shown. For this reason, I'm hesitant to recommend this feature. It would be a lot smoother to set the page padding in a custom CSS file to make up for whatever EM height your toolbars happen to be.
- Height is set in Pixels, meaning changes in font size could render it inaccurate. If we want to set height in ems, we'll need to add an em conversion utility function to jQM.
- To ensure it works properly, this method will need to be called on page show, and at any time a content reflow might occur: resize, orientationchange, zoom?
This method is not currently called automatically.
It can be called like this: $(".ui-header-fixed").fixedtoolbar( "updatePagePadding" );
2012-01-25 18:26:04 +07:00
scottjehl
544cdb49d6
if the option to disable page zoom on pages that contain a fixed toolbar is true, the plugin needs to use the lock to prevent other plugins from enabling zoom again while the page is in view. Fixes #3477
2012-01-25 17:39:13 +07:00
scottjehl
56607b946c
this dependency is already in the define statement, which should be enough
2012-01-25 17:32:51 +07:00
scottjehl
b39c320bec
preventFocusZoom default is true on iOS platforms, false otherwise, as it is only here to address an iOS bug.
2012-01-25 17:28:25 +07:00
scottjehl
f5260ab9e5
exclude non-iOS platforms from this behavior
2012-01-25 17:24:53 +07:00
Ghislain Seguin
271beeefb0
Merge pull request #3485 from jrburke/amd-relative
...
Update to relative AMD dependencies
2012-01-24 15:33:21 -08:00
jrburke
096e90bbfe
Update to relative AMD dependencies, allows proper use of source in an AMD project.
2012-01-24 14:43:24 -08:00
scottjehl
40c400d657
Merge remote branch 'origin/master'
2012-01-24 17:34:20 +07:00
scottjehl
f9d7ff95a7
removed unused function in tests
2012-01-24 17:31:07 +07:00
scottjehl
9da89ff6db
modified so that the select zoom calls manipulate the locked property, to ensure other zoom plugins don't mess with it during focus
2012-01-24 17:31:07 +07:00
scottjehl
6e12e62123
namespaced the events.
2012-01-24 17:31:07 +07:00
scottjehl
94a9b24567
added the locked property, with options to lock and unlock it when calling disable or enable, respectively. This allows a plugin to take control and ensure zoom isn't messed with while it's carrying out a zoom-specific task
2012-01-24 17:31:07 +07:00
scottjehl
edad9c1f9a
window not w, evt wasn't defined. Thanks @staabm
2012-01-24 17:31:06 +07:00
scottjehl
5725b4bac9
updated to bulletproof further
2012-01-24 17:31:06 +07:00
scottjehl
6cee30d22c
updated to use only the devicemotion event, for compatibility and less battery battering
2012-01-24 17:31:06 +07:00
scottjehl
460ad7197c
This change brings the iOS orientationchange bug workaround up to the latest code from that external project, with an experimental attempt at iOS4.3 support on the 3GS using the devicemotion event, which may be a bad idea to use unthrottled - not sure yet. This code needs to be tested on a device with iOS5, and I imagine the check for deviceorientation will also need a check for the value of evt.gamma. At that point, we may decide to only support iOS5 for this workaround, and the code can bind only to deviceorientation and be more concise.
2012-01-24 17:31:06 +07:00
scottjehl
4e2c8ef2a3
added unit tests for prevent focus zoom option
2012-01-24 17:31:06 +07:00
scottjehl
3a9c22eacc
switched up this check so it binds the events regardless of initial state, in case it's toggled later
2012-01-24 17:31:06 +07:00
scottjehl
ae726d2d45
added files to index php
2012-01-24 17:31:06 +07:00
scottjehl
b7549b213c
moved the iosfocusfix logic over to the selectmenu plugin. It's now toggled via a new option: preventFocusZoom (Default is true).
2012-01-24 17:31:06 +07:00
scottjehl
6077668af4
added a restore method, similar to a widget's destroy. Restores the meta content back to original value
2012-01-24 17:31:06 +07:00
scottjehl
5fcf89e0d9
added unit tests for the zoom plugin
2012-01-24 17:31:05 +07:00
scottjehl
db453434a8
use maximum scale instead of user-scaling, as it's more reliable for restoring zoom
2012-01-24 17:31:05 +07:00
scottjehl
79b1979177
fixed up the unit tests so that they only test the plugin's usage of the zoom methods, not the result of whether those methods are working
2012-01-24 17:31:05 +07:00
scottjehl
29373214c6
added zoom dependency and removed internal handling of page zoom enable/disable, opting to use the zoom plugin methods instead
2012-01-24 17:31:05 +07:00
scottjehl
75214550b1
added meta viewport tag
2012-01-24 17:31:05 +07:00
scottjehl
b07bab7b51
fixed a duplicate listing
2012-01-24 17:31:05 +07:00
scottjehl
66be09d2de
A new utility: $.mobile.zoom, which as 3 members: enabled [bool], disable [function], and enable [function].
...
This simple utility is used to disable user scaling in devices like iOS. The disable() method disables user-scaling. The enable() method enables user-scaling. The enabled property keeps track of state.
Two other utilites are included here as well.
First, there's zoom.iosfocusfix.js, which disables zoom as a select or input element is focused, preventing iOS from zooming into that element and cropping the viewport. Zoom is restored just after the focus event fires (a half second timeout).
Then there's zoom.iosorientationfix.js, which is intended to fix the iOS orientationchange zoom bug, following the approach from this project https://github.com/scottjehl/iOS-Orientationchange-Fix . This may not be working yet. Needs testing, and it may require that we change the values of the meta content to use maximum-scale instead of user-scalable.
Lastly, fixedtoolbar, once it lands, should use this utility to disable/enable zoom, rather than the one that's currently included in its own source.
2012-01-24 17:31:05 +07:00
Mat Marquis
e7250070d1
Added moz-prefixed transition for slider handle.
2012-01-23 17:27:32 -05:00
Mat Marquis
201058bc90
Cached window in show/hide functions, since I was in the neighborhood.
2012-01-23 15:54:08 -05:00
Ghislain Seguin
1609ea10e7
Changed input file for css structure to static string: jquery.mobile.structure
2012-01-23 15:43:46 -05:00
Ghislain Seguin
e42c7025e5
Use jquery.mobile.structure.css instead of the list all the individual
2012-01-23 15:43:46 -05:00
Ghislain Seguin
235f39b6a7
import jquery.mobile.structure.css instead of all the individual files
2012-01-23 15:43:46 -05:00
Ghislain Seguin
ddaab10c59
Created jquery.mobile.structure.css which contains the structure css files
2012-01-23 15:43:45 -05:00
scottjehl
7f2e50430e
fixed the fixed toolbar tap toggle. Footers weren't moving to bottom. This line was outta line
2012-01-23 23:47:08 +07:00
scottjehl
c71ae9da12
z-index no longer required during transitions
2012-01-23 21:29:42 +07:00
Ghislain Seguin
9f3c58caf6
Moved the conditional define call within a document.write
2012-01-22 23:15:59 -08:00
Ghislain Seguin
eadf804d4b
define jquery module if loading jQuery < 1.7
2012-01-22 23:15:47 -08:00
Ghislain Seguin
079324cf56
Use jQuery tag inserter instead of pointing directly at jquery.js
2012-01-22 23:15:30 -08:00
Ghislain Seguin
9febd86e55
Use jQuery tag inserter instead of pointing directly at jquery.js
2012-01-22 23:14:38 -08:00
Ghislain Seguin
9ffedb700b
Added a script tag inserter to be able to pick jQuery with a url param
2012-01-22 23:14:23 -08:00
Ghislain Seguin
ca50119068
Added jQuery 1.7.1
2012-01-22 23:13:50 -08:00