Fixed mobile margin for small history
This commit is contained in:
parent
7b09966bb7
commit
c82eb22a2b
@ -673,7 +673,11 @@ angular.module('myApp.directives', ['myApp.filters'])
|
|||||||
|
|
||||||
function updateBottomizer () {
|
function updateBottomizer () {
|
||||||
$(historyMessagesEl).css({marginTop: 0});
|
$(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) {
|
if (historyMessagesEl.offsetHeight > 0 && marginTop > 0) {
|
||||||
$(historyMessagesEl).css({marginTop: marginTop});
|
$(historyMessagesEl).css({marginTop: marginTop});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user