Browse Source

Fixed mobile margin for small history

master
Igor Zhukov 10 years ago
parent
commit
c82eb22a2b
  1. 6
      app/js/directives.js

6
app/js/directives.js

@ -673,7 +673,11 @@ angular.module('myApp.directives', ['myApp.filters']) @@ -673,7 +673,11 @@ angular.module('myApp.directives', ['myApp.filters'])
function updateBottomizer () {
$(historyMessagesEl).css({marginTop: 0});
var marginTop = scrollableWrap.offsetHeight - historyMessagesEl.offsetHeight - 20 - 49;
var marginTop = scrollableWrap.offsetHeight
- historyMessagesEl.offsetHeight
- 20
- (Config.Navigator.mobile ? 0 : 49);
if (historyMessagesEl.offsetHeight > 0 && marginTop > 0) {
$(historyMessagesEl).css({marginTop: marginTop});
}

Loading…
Cancel
Save