- Sticky - Adds new example for sticky to highlight behavior when sticky/context height varies
- Dropdown - Fix issue where dropdown menu could not open to right when in
right menu
inside aui menu
(See examples/sticky.html) for use-case - Sticky - Fix issue where element might be
bound bottom
(fixed to bottom of context) if the sticky element is larger than the context - Sticky - Fix issue when sticky size is larger than context size caused context
min-height
not to be set correctly.
- Sticky - Fix issue where sticky would cause page to shift when
context
height was determined by sticky's height inposition: static;
#3430 - Sticky - Sticky now includes a new setting
setSize
to determine whether it should set content size on stick to the size before sticking (fixed content uses different positioning system) #4360 - Sticky - Fixed edge case where using
offset
setting, sticky element would not internally scroll if the rail contents (without the offset setting) would fit on screen - Sticky - Fixed an issue where
ui sticky
used with a percentage based width would not resize properly if the content size of container changed when "stuck" #4360
- Sticky - Adds
container
setting. This can be used to specify the offsetParent of the sticky element and avoid having to calculate on initialization (improving performance)
- All UI - Added new setting
silent
to all modules which allows you to disable all console output including errors. This can be useful for preventing known errors, like a popup which cannot place itself on screen, orsticky
content which initializes before it is visible #3713 - Image -
transition hidden image
now shows correctly asvisibility: hidden;
and notdisplay: none
. This will allowoffset
withvisibility
andsticky
to work more seamlessly.hidden image
will still remaindisplay: none;
- Sticky/Visibility - Added mutation observer to teardown element with
destroy
if removed from DOM context, fixing a possible memory leak
- Sticky - Renames variables used to account for scroll offset internally for greater code clarity
- Sticky - Fixes bug where sticky would stick at incorrect times when using a different scroll container than
body
and scrollTop is not 0 on page load. - Sticky - Fixed issue where pressing home/end button would cause sticky to break due to internal logic not allowing immediate jump from bottom attached to top attached, experienced most likely when pressing "home" or "end" key #3011
- Sticky - Sticky now sets width and height with
!important
to avoid inheritance issues in some cases Thanks @lauri-elevant #2710
- Sticky - Fixed
sticky
element that cannot fit in viewport not scrolling correctly when fixed to viewport #2605 - Sticky - Fixed
sticky
content jumping fromfixed
tobound bottom
when scroll position has surpassed bottom of container during page refresh. - Sticky - Sticky no longer uses
bottomPadding
to determine bottom edge of container.
- Visibility - Visibility and sticky now use a more performant pub/sub pattern that will only attach a single event to context
scroll
. - Sticky - Sticky now internally caches current scroll position when
cantFit = true
to avoid getting DOM property on scroll. - Visibility/Sticky - Visibility and sticky now refresh automatically after page content loading to deal with changes in position from images loading
- Visibility/Sticky - Visibility now uses pub/sub pattern to greatly improve scroll performance when attaching multiple events
- Sticky - Fix issue with sticky content scroll css transition causing element to scroll too slowly when cannot fit on screen.
- Sticky - Fix issues when
pushing: true
with sticky content having incorrect bottom spacing, when container has bottom padding - Sticky - Fixed issue with sticky content animating width on display in some cases.
- Sticky - Adds sticky module from
2.x
branch. Sticky elements now use pub/sub with drastically improved performance. Sticky elements that do not fit on page will now scroll at the same speed as the page is scrolled instead of slower.
- Sticky - Fixes errant
console.log
statement appearing in source
- Sticky - Fixed sticky position when page loads and content is below sticky content.
- Sticky - Fix bottom attached position not adjusting for bottom padding on container element
- Sticky - Fixes issue with container size not being set explicitly on rail due to improper method renaming