Commit Graph

4448 Commits

Author SHA1 Message Date
Scott González
2cf9948cad Position: Use offsets for all calculations in feedback API. 2012-04-20 11:02:50 -04:00
Scott González
22b7f9a819 Position: Use targetElem for events to maintain consistency. 2012-04-20 10:12:14 -04:00
Scott González
a9f1ffb4fd Position: Simplify border calculations for feedback. 2012-04-20 10:10:02 -04:00
Jörn Zaefferer
3b73177d0c Position: Also create a local reference for Math.round; update other Math references 2012-04-20 14:15:57 +02:00
Jörn Zaefferer
cfa6aa328e Position: offset() always returns null for window, so provide default 0/0 coordinates to avoid checks further down 2012-04-20 14:13:52 +02:00
Jörn Zaefferer
be3af5bc64 Position: Move Math.abs/max definitions to the top of the file 2012-04-20 14:09:17 +02:00
Jörn Zaefferer
d3dc637b65 Position: Cleanup variable definitions, move undefined vars to the top 2012-04-18 16:43:25 +02:00
Jörn Zaefferer
f594c0623a Position: Make getOffsets and parseCss helpers local functions, no need to expose those 2012-04-18 00:30:47 +02:00
Jörn Zaefferer
db592b787e Tooltip: Update custom-style demo, remove the ugly padding that was hiding layout issues, use new position feedback API instead of position callout in more then just one place 2012-04-17 09:57:17 +02:00
Jörn Zaefferer
5cf3f927a0 Tooltip: Remove bad docs links from headers 2012-04-17 09:56:20 +02:00
Jörn Zaefferer
a5fc9eb7db Position: Expose target and element dimensions to allow further customization, like calculating the angle between the two elements 2012-04-13 16:05:29 +02:00
Jörn Zaefferer
cb67eb535c Position: Cache the scrollbarWidth calculation result 2012-04-13 15:12:37 +02:00
Jörn Zaefferer
7dcfae7da2 Position: Extract getWithinInfo method, use that for tests that call getScrollInfo directly, pass within info to that, gets rid of a few more DOM accesses 2012-04-13 15:05:43 +02:00
Jörn Zaefferer
c0a5e52f87 Position: Finish refactoring of within data 2012-04-13 14:46:43 +02:00
Jörn Zaefferer
59b93a7dac Position: Refactor within-data to avoid calculating that more then needed. Not quite done, but good enough for now 2012-04-12 18:33:31 +02:00
Jörn Zaefferer
8c76fe38bf Position: Inline center variable. Not necessary with gzip (or a good minifier) in place, wasn't consistent with other inline strings 2012-04-12 17:48:01 +02:00
Jörn Zaefferer
1779d86b40 Position: add target property to feedback argument, to allow additional calculation in user's using callback 2012-04-12 17:33:05 +02:00
Jörn Zaefferer
2154ca552a Position: Cache Math.abs and Math.max lookups 2012-04-12 17:14:03 +02:00
Jörn Zaefferer
58d5452a7c Position: Refactor css parse calls 2012-04-12 17:10:51 +02:00
Jörn Zaefferer
e1a80d5900 Position: Cleanup feedback test page 2012-04-12 17:10:32 +02:00
Jörn Zaefferer
6ffc4adf06 Position: Calculate scrollInfo just once, not for each element 2012-04-12 16:57:51 +02:00
Jörn Zaefferer
08c8aedf80 Position: Refactor offset calculations 2012-04-12 16:56:54 +02:00
Jörn Zaefferer
0c5c2c7055 Position: Restrict the center/middle priority to target < element cases 2012-04-12 16:14:16 +02:00
Jörn Zaefferer
d077f9b360 Position: Improve feedback API by giving the center/middle position more weight. Also removed themeswitcher from test pages, now load faster 2012-04-12 01:32:30 +02:00
Jörn Zaefferer
260261255b Position: Extend feedback test page to include two mouse-positioned elements, highlights the 0px center/middle limitation
Also rename the demo file to match the variables names, 'feedback', instead of 'notification'
2012-04-11 15:20:56 +02:00
Jörn Zaefferer
623e8e68b4 Position: Mini refactoring, avoids proxying using callback multiple times if more then one element is positioned 2012-04-11 00:19:26 +02:00
Jörn Zaefferer
c0cceee8e4 Position: Fix single var, whitespace. Clone targetOffset to avoid reading that twice 2012-04-10 23:41:41 +02:00
Jörn Zaefferer
e5ba731019 Position: Use a separate object and argument for the feedback information, keeping position props as they were 2012-04-10 22:16:38 +02:00
Jörn Zaefferer
479530bb61 Position: First draft for a new notification API, via using callback, telling you were the of-element is, not just when something flipped. New test page demonstrates usage 2012-04-10 18:15:30 +02:00
Scott González
92c74818ff Menu: Cleanup. 2012-04-10 08:39:18 -04:00
Scott González
218bd47ecd Autocomplete combobox demo: Fixed styling of button. Fixed #8242 - Autocomplete combobox button has vertical offset relatively to input field (Opera 11.62). Fixed #8243 - Autocomplete combobox button has smaller height than input field (Firefox 11.0). 2012-04-07 20:37:12 -04:00
kborchers
9e9baad46f Merge branch 'menuDividers' into master 2012-04-07 17:43:23 -05:00
kborchers
44ef35eb6f Menu: Add dividers using empty list items 2012-04-07 15:38:27 -05:00
Scott González
c0f5db5394 Tabs: Don't explicitly remove filter when animating opacity. Fixes #4621 - Tabs: Don't forcefully remove filter attribute. 2012-04-06 09:03:04 -04:00
kborchers
cd90e57f22 Merge branch 'positionWithin' 2012-04-04 22:12:11 -05:00
Jörn Zaefferer
343375b623 Build: Get grunt default task to pass. Fix lint errors inside grunt.js file itself. Removes invalid vertical-align from spinner button css, unnecessary adjoining class in tabs.css 2012-04-04 11:14:03 +02:00
Jörn Zaefferer
79f1eea6dc Build: Filter filters for linting to exclude some to-be-rewritten ones. Fix lint in those remaining 2012-04-04 11:02:08 +02:00
kborchers
e7701e2efa Position: Fixed issue with offsets using the within option which caused flips to not happen when the containing element had been scrolled. 2012-04-03 21:08:34 -05:00
Scott González
a505192420 Tabs: Coding standards. 2012-04-03 19:59:08 -04:00
Scott González
96f9c84b7b Autocomplete: Move race condition logic from ajax requests to general response handler. Fixes #8234 - Autocomplete: Automatic race-condition handling for custom sources. 2012-04-03 16:47:14 -04:00
Scott González
4ade13450e Datepicker: Don't set _curInst in hideDatepicker. Fixes #8174 - jQuery datepicker is stuck open if label is clicked from open state. 2012-04-03 15:36:33 -04:00
Scott González
e0616aaf74 Autocomplete: Add header protection which was accidentally removed. 2012-04-03 07:15:09 -04:00
Jörn Zaefferer
037db084f2 Position: Extend main visual test page with simple 'arrow' callouts, as a starting pointing for a better collision notification API 2012-04-03 10:49:34 +02:00
Jörn Zaefferer
b2f8814d0a Tooltip: Remove old callout test page. Completely broken at this point, not worth fixing 2012-04-03 10:35:42 +02:00
Scott González
0624c74929 Effects core: Properly handle defaults for effects that are called with a single hash. 2012-04-02 22:35:42 -04:00
Scott González
ea4345db06 Grunt: Removed newcap option from jshint task. 2012-04-02 22:20:18 -04:00
Scott González
639afa5954 Lint fixes. 2012-04-02 19:12:21 -04:00
Scott González
3e6877a892 Grunt: Fixed jshint options. 2012-04-02 19:12:10 -04:00
Scott González
ccbfd45924 A few lint fixes. 2012-04-02 15:55:50 -04:00
Scott González
3876c874e3 Grunt: Whitelist js and css files for @version replacement instead of blacklisting png. 2012-04-02 13:15:54 -04:00