Browse Source

Fixed scroll bug

master
Igor Zhukov 10 years ago
parent
commit
c414e9c33c
  1. 3
      app/js/directives.js

3
app/js/directives.js

@ -469,6 +469,7 @@ angular.module('myApp.directives', ['myApp.filters']) @@ -469,6 +469,7 @@ angular.module('myApp.directives', ['myApp.filters'])
atBottom = false;
} else {
scrollableWrap.scrollTop = scrollableWrap.scrollHeight;
atBottom = true;
}
updateScroller();
$timeout(function () {
@ -596,7 +597,7 @@ angular.module('myApp.directives', ['myApp.filters']) @@ -596,7 +597,7 @@ angular.module('myApp.directives', ['myApp.filters'])
});
function updateSizes (heightOnly) {
if (!element.is(':visible') || !$(element[0].parentNode).is(':visible')) {
if (!element.is(':visible') && !$(element[0].parentNode.parentNode).is(':visible')) {
return;
}
if ($(sendFormWrap).is(':visible')) {

Loading…
Cancel
Save