Browse Source

Sidebar: swaps to single RequestAnimationFrame, updates release notes

pull/1243/merge
jlukic 10 years ago
parent
commit
e97582c588
4 changed files with 10 additions and 11 deletions
  1. 1
      RELEASE-NOTES.md
  2. 4
      src/definitions/modules/popup.js
  3. 12
      src/definitions/modules/sidebar.js
  4. 4
      src/definitions/modules/sidebar.less

1
RELEASE-NOTES.md

@ -61,6 +61,7 @@
- **List** - List spacing defaults have been adjusted to be more consistent - **List** - List spacing defaults have been adjusted to be more consistent
- **Popup** - Popup can now allow itself not to be closed when hovered over - **Popup** - Popup can now allow itself not to be closed when hovered over
- **Popup** - A popup element can now be specified on initialization. - **Popup** - A popup element can now be specified on initialization.
- **Reveal** - Reveals now all use css properties with GPU acceleration
- **Popup** - Positioned popups will now extend in the opposite direction to fit better with floated content - **Popup** - Positioned popups will now extend in the opposite direction to fit better with floated content
- **Rating** - Rating now uses an embedded icon font to maximize compatibility - **Rating** - Rating now uses an embedded icon font to maximize compatibility
- **Rating** - Rating can now automatically generate icons without including them - **Rating** - Rating can now automatically generate icons without including them

4
src/definitions/modules/popup.js

@ -895,8 +895,8 @@ $.fn.popup.settings = {
name : 'Popup', name : 'Popup',
debug : false, debug : false,
verbose : false,
performance : false,
verbose : true,
performance : true,
namespace : 'popup', namespace : 'popup',
onCreate : function(){}, onCreate : function(){},

12
src/definitions/modules/sidebar.js

@ -371,14 +371,12 @@ $.fn.sidebar = function(parameters) {
module.repaint(); module.repaint();
animate = function() { animate = function() {
module.set.animating(); module.set.animating();
requestAnimationFrame(function() {
module.set.visible();
if(!module.othersActive()) {
if(settings.dimPage) {
$pusher.addClass(className.dimmed);
}
module.set.visible();
if(!module.othersActive()) {
if(settings.dimPage) {
$pusher.addClass(className.dimmed);
} }
});
}
}; };
transitionEnd = function(event) { transitionEnd = function(event) {
if( event.target == $transition[0] ) { if( event.target == $transition[0] ) {

4
src/definitions/modules/sidebar.less

@ -44,13 +44,13 @@
z-index: @topLayer; z-index: @topLayer;
} }
/* 3D Rendering Fix */
/* 3D Rendering */
.ui.sidebar * { .ui.sidebar * {
backface-visibility: hidden; backface-visibility: hidden;
transform: rotateZ(0deg); transform: rotateZ(0deg);
} }
/*-------------- /*--------------
Direction Direction
---------------*/ ---------------*/

Loading…
Cancel
Save