[PE mobile] Fixed display document area.

This commit is contained in:
Alexander Yuzhin 2016-11-24 09:33:11 +03:00
parent 4189255a21
commit 10c41b8892
5 changed files with 32 additions and 6 deletions

View file

@ -105,8 +105,14 @@ define([
},
onDisplayMainNavbar: function (e) {
var $target = $(e.currentTarget);
$('#editor_sdk').css('marginTop', $target.hasClass('navbar-hidden') ? 0 : '');
var $target = $(e.currentTarget),
navbarHidden = $target.hasClass('navbar-hidden'),
pickerHeight = $('.picker-modal').height() || 260;
$('#editor_sdk').css({
top : navbarHidden ? 0 : '',
bottom : navbarHidden ? pickerHeight : ''
});
},
// Search

View file

@ -6470,7 +6470,12 @@ i.icon.icon-link {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20viewBox%3D%220%200%2022%2022%22%20fill%3D%22%23DF6737%22%3E%3Cg%3E%3Cpath%20d%3D%22M12.4%2C9.8c0%2C0-2.1-0.1-3.8%2C1.2c-2.8%2C2-3.3%2C4.3-3.3%2C4.3s1.6-1.7%2C3.5-2.5c1.7-0.7%2C3.7-0.4%2C3.7-0.4v1.9l4.8-3.3V11l-4.8-3.3V9.8z%20M11%2C1C5.5%2C1%2C1%2C5.5%2C1%2C11c0%2C5.5%2C4.5%2C10%2C10%2C10s10-4.5%2C10-10C21%2C5.5%2C16.5%2C1%2C11%2C1z%20M11%2C20c-5%2C0-9-4.1-9-9C2%2C6%2C6%2C2%2C11%2C2s9%2C4.1%2C9%2C9C20%2C16%2C16%2C20%2C11%2C20z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
#editor_sdk {
margin-top: 44px;
position: absolute;
left: 0;
right: 0;
top: 44px;
bottom: 0;
height: auto;
-webkit-transition-duration: 300ms;
transition-duration: 300ms;
}

View file

@ -6059,7 +6059,12 @@ i.icon.icon-link {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20viewBox%3D%220%200%2022%2022%22%20fill%3D%22%23fff%22%3E%3Cg%3E%3Cpolygon%20points%3D%2210.9%2C16.9%202%2C8.1%204.1%2C6%2011.1%2C12.8%2017.9%2C6%2020%2C8.1%2011.2%2C16.9%2011.1%2C17%20%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
#editor_sdk {
margin-top: 48px;
position: absolute;
left: 0;
right: 0;
top: 48px;
bottom: 0;
height: auto;
-webkit-transition-duration: 300ms;
transition-duration: 300ms;
}

View file

@ -78,7 +78,12 @@ input, textarea {
// Top offset
#editor_sdk {
margin-top: @toolbarSize;
position: absolute;
left: 0;
right: 0;
top: @toolbarSize;
bottom: 0;
height: auto;
.transition(300ms);
}

View file

@ -59,7 +59,12 @@
// Top offset
#editor_sdk {
margin-top: @toolbarSize;
position: absolute;
left: 0;
right: 0;
top: @toolbarSize;
bottom: 0;
height: auto;
.transition(300ms);
}