Commit graph

57 commits

Author SHA1 Message Date
Kin Blas
dd458d1d4e Removing the deprecated $.fixedToolbars property in preparation for jQM 1.0. 2011-09-20 15:28:07 -07:00
scottjehl
2369e2fa32 improved qualifications so that iOS5 gets the old-style fixed headers and footers when touchOverflow is disabled (which is the default). 2011-09-09 12:27:59 -04:00
scottjehl
b645781f4d implemented native overflow scrolling based on support for -[prefix]-overflow-scrolling: touch. True fixed headers and footers come supported as well. 2011-09-08 12:38:50 -04:00
Rick Waldron
627b9189d6 Core Style Conformance updates; jquery.mobile.fixHeaderFooter.js 2011-08-01 18:34:49 -04:00
scottjehl
faf26d8f6d namespaced $.fixedToolbars to $.mobile. Kept a deprecated pointer to $.fixedToolbars that we'll want to remove later. This feature can now be documented. Addresses Issue #2024 2011-07-31 20:35:18 -04:00
scottjehl
263193f490 Moved autoinit calls to after widgets. Made it so auto init selectors use the initSelector option, so that it can be configurable. 2011-07-27 18:42:16 -04:00
scottjehl
e07c40e3d0 exposed automatic initialization selectors on most widgets that expose options through the widget factory. Option name is "initSelector" 2011-07-26 14:22:08 -04:00
scottjehl
fdb77bfa52 changed new (undocumented) "enhance" event to "create" to better match our existing event name conventions 2011-07-22 09:05:55 -04:00
scottjehl
64e6ef0e72 bound widgets to the "enhance" event, in addition to the pagecreate event. The enhance event allows developers to enhance the contents of an html fragment by triggering "enhance". 2011-07-19 22:44:03 -04:00
scottjehl
2a6c7fc1b9 This commit decouples all widgets from the page plugin so that they can be used ad-hoc.
- Internally, each plugin self-initializes by binding to the pagecreate event.

- Unit tests have been added and adjusted to support some internal changes involved in this commit.

- In the process, the portions of the page plugin that were used to enhance the header,content,and footer sections of a native-app style page layout are now located in jquery.mobile.page.sections.js.

- No public API options have changed, except that the page plugin no longer has options for keepNative, and degradeInputs, as plugins now handle these internally (keepNative was never documented, and degradeInputs only affected slider, so it lives there now. Page options related to the page sections are now located in the page.sections script, but they are still configurable via the page plugin's options api.

- Make, Ant, and index files are updated with a new load order for all JS files.
2011-07-19 22:25:23 -04:00
Rick Waldron
250d00cde3 jQuery core style guide conformance: jquery.mobile.fixHeaderFooter.js 2011-06-28 23:47:46 -04:00
cburgdorf
5c0cfb29cb Some jslint fixes. Corrected curly braces on new line and ==/=== issues 2011-06-21 23:53:16 -07:00
Mat Marquis
86295b170d Correcting my own comment. 2011-05-26 13:00:01 -04:00
Mat Marquis
4947eacf1c Bound 'silentscroll' event back to document, as it was causing issues in modern browsers and made no difference in IE 7/8. 2011-05-26 12:40:49 -04:00
Mat Marquis
f36e92fb7b Desktop IE wasn't reporting a scrollTop value for fixed headers/footers—'window' is now provided as a fallback in the event that .scrollTop() reports zero. 2011-05-26 11:51:16 -04:00
scottjehl
ae7d62a1bc code style & repetition cleanup 2011-05-18 18:32:59 -04:00
vtwoods
5918e5ad9f Moved the resize event into the fixed toolbar plugin. 2011-05-18 18:17:41 -04:00
scottjehl
c3fd9c1835 made sure a couple of variables are locally scoped. Fixes #1403 2011-04-12 15:11:14 -04:00
scottjehl
e38a25de58 make sure the sticky footer matching is only true if data-ids are specified. This makes "tap" work again when toggling fixed headers and footers. 2011-03-30 20:52:13 -04:00
scottjehl
27b4cd29fc improved the fixed headers and footers so they show and hide more appropriately, even when starting a scroll on an anchor element. Fixes #1309 2011-03-29 19:09:19 -04:00
scottjehl
80f81ca6fa improved sticky footers a little bit. Now they don't fade after becoming sticky, but they stick well at least. 2011-03-28 20:35:17 -04:00
scottjehl
8fa56b6e85 Got the sticky footers working again. Markup change noted in first page of demo. Fixes #850 2011-03-28 18:30:55 -04:00
scottjehl
7503f62a10 changed our two new custom data helper names to jqmData() and :jqmData() 2011-03-25 17:50:40 -04:00
Kin Blas
db89e1f24d Switch find/filter selector calls over to using the new :jqdata() pseudo selector. 2011-03-22 13:31:17 -07:00
scottjehl
ea60207c1b changed custom data method to $.fn.mobileData() and updated plugins that use it. 2011-03-09 23:27:21 -05:00
scottjehl
2e7ee89ec3 updated attr lookups to use namespace 2011-03-09 20:49:42 -05:00
scottjehl
ce34ece257 namespaced data- attrs to $.mobile.ns (defaults to "jq-") throughout the JS 2011-03-09 20:47:44 -05:00
Kin Blas
c85a9c3d00 Fix for issue 1198.
- Added the mobile namespace to the pageContainer reference. I think we may have missed this during the sweep when we added the mobile namespace.
2011-03-07 09:27:57 -08:00
Kin Blas
1dad50e536 Fix for the header/footer positioning problem, mentioned in issue 58, that is caused by the browser url/nav bar scrolling offscreen due to the silentScroll() call triggered when the document is first loaded.
- Modified silentScroll() to trigger a "silentscroll" event. This was necessary because programatically scrolling the window does not generate "scroll" events.

- Got rid of the hideAfterDelay() function that was not used.

- Added startShowTimer() and clearShowTimer() functions.

- Added event handlers for "resize" and "silentscroll" events. This causes headers/footers to be positioned properly as "scroll" and "orientationchange" events cause the visual viewport to resize.

Issues this fix causes:

- On some Android platforms, clicking in textfields/textareas trigger a "resize" event. This causes the footer to show up in the minimized visual viewport, right above the keyboard.
2011-01-24 07:11:19 -08:00
Kin Blas
e4042266fb Fix for issue 841 - Persistent footers persist even when going to other pages that don't have footers or don't have footers with the same data-id.
This was a regression I caused with my previous checkin. The fix is to simply null out stickyFooter in the pagebeforeshow callback.
2011-01-20 12:51:28 -08:00
scottjehl
2841c26b85 Merge branch 'fieldcontain_this' of https://github.com/ehynds/jquery-mobile into ehynds-fieldcontain_this 2011-01-11 16:25:34 -05:00
Kin Blas
c910f4b01f Fix for issues:
470 - Multiple Footers when using data-position=fixed and data-id=[someid]

773 - The fixHeaderFooter pagebeforeshow live function is not triggered for the initial page shown

- Removed the findStickyFooter() function.

- Reworked the logic in the pagebeforeshow live function. We now add a ui-sticky-footer class to the sticky footer element. This will guarantee that we find the sticky footer if it already exists. We may at some point want to consider the use of ids on the sticky footers so that we don't have to crawl the entire document.

- Moved the live pagebeforeshow and pageshow calls outside of the DOMReady function so that they get registered as soon as the plugin is loaded. This guarantees that they will be triggered when the core plugin's DOMReady function fires.

- This fix makes issue/pull-request 765 obsolete.
2011-01-07 01:07:22 -08:00
ehynds
c8a161a04d same fix in a few other places 2010-12-28 10:15:30 -05:00
Kin Blas
3062199ac6 Some tweaks to kptdobe's patch from:
https://github.com/jquery/jquery-mobile/pull/649

  - Changed hideOnTouchEnabed to touchToggleEnabled.
  - Fixed problem that would allow the toolbars to show on touchstop, if the starting state was "inline" to begin with.
  - Moved the touchToggleEnabled checks in touchstart/touchstop so that they wrap the entire code in the function. We don't want to do any work if we don't need to.
  - Removed the forced hide() call in touchstart.

Added the missing fadeout animation reference inthe fade.in transition rule.
2010-12-10 10:17:16 -08:00
kptdobe
9c3762978e Allow to disable headers hide on touch behavior 2010-12-09 15:02:45 +01:00
scottjehl
93179f9a3d updated comment about license to match other jQuery projects - MIT "or" GPL 2010-11-19 22:47:47 -05:00
Kin Blas
a77ca291e6 Fixed 59 - Fixed footer is anchored to the end of the page content instead of the view port.
- If content is less than the view port height, the footer is always anchored at the bottom of the view port.
- If the content is greater in height than the view port, then in inline mode itrests in flow, and in "fixed" mode it snaps to the bottom of the view port.
2010-11-11 16:08:45 -08:00
Kin Blas
dfa1a689a4 Fixed 432 - Fullscreen positioning don't work iPhone/Android/Desktop
- $.mobile.activePage isn't being set till *AFTER* the "pageshow" notification, so pass in the page from our pageshow callback into the show() method.

- Also added missing getOffsetTop() call that I missed in my previous checkin.
2010-11-11 13:39:54 -08:00
scottjehl
b7b553da84 missed a few files in that last commit. 2010-11-11 15:08:48 -05:00
Kin Blas
1261fbc828 Bring iPad iOS 3.2.1 up to par with other platforms in terms of footer positioning. 2010-11-11 09:27:11 -08:00
scottjehl
a24196e550 dolla dolla bills y'all.
Fixes #126, Fixes #346
2010-11-11 10:50:28 -05:00
scottjehl
356308e6b7 updates to comments 2010-11-09 19:55:52 -05:00
Kin Blas
bb5708e543 Some tweaks to make page scrolling faster.
- Prevent the fixed header/footer code from traversing the entire document for each touchstart, touchend and scrollstart event.

- Make sure $.activePage is initialized with the startPage.
2010-11-04 00:27:21 -07:00
scottjehl
b211de4bb3 updated triggered events to pagebeforeshow / pagebeforehide 2010-10-20 16:01:38 -04:00
scottjehl
a0b814e26a moved appends over to use $.pageContainer 2010-10-20 12:09:03 -04:00
scottjehl
0bee3fc585 made fixed headers an opt-in, until we can work the bugs out 2010-10-15 14:58:08 -04:00
scottjehl
3150f40064 Returns if $.support.scrollTop is false. Fixes #66 2010-10-13 17:30:51 -04:00
scottjehl
9843e9f7a1 reverting the polling interval 2010-10-12 11:59:23 -04:00
scottjehl
7339965765 polling setTop on an interval to test for improvements. 2010-10-12 11:43:52 -04:00
scottjehl
c99b047333 only apply show/hide to first header, last footer on page 2010-10-12 11:43:51 -04:00