The behavior was intended to increase the available screen space when the editor is active. However, the height of smartphones has constantly increased, reducing the impact of a couple extra pixels.
The major downside was the focus behavior which is somewhat unintuitive on mobile and has repeatedly caused confusion among users, because the menu was seemingly “lost”.
}).bind(this))
}).bind(this));
- var ua = window.navigator.userAgent.toLowerCase();
- if (ua.indexOf('windows phone') === -1 && ua.indexOf('edge/') === -1) {
- this.$editor[0].addEventListener('focus', function () {
- document.documentElement.classList.add('redactorActive');
- });
- this.$editor[0].addEventListener('focusout', function () {
- // short delay to prevent flickering when switching focus between editors
- window.setTimeout(function () {
- if (!document.activeElement || !document.activeElement.classList.contains('redactor-layer')) {
- document.documentElement.classList.remove('redactorActive');
- }
- }, 100);
- });
- }
-
this.events.iterateObserver = (function(mutation) {
var stop = false;
}
}
}
-
-@include screen-xs {
- .pageHeaderPanel,
- .pageHeaderFacade > .layoutBoundary {
- transition: transform 0.12s linear;
- }
-
- .redactorActive {
- .pageHeaderPanel,
- .pageHeaderFacade > .layoutBoundary {
- transform: translateY(-120%);
- }
- }
-}
.pageOverlayActive .pageAction {
display: none;
}
-
-@include screen-xs {
- .redactorActive .pageAction {
- bottom: 10px;
-
- &:not(.pageActionHasContextButtons) {
- display: none !important;
- }
- }
-}