Merge "Fix sidebar bottom position when pressing Ctrl+Shift+E"

This commit is contained in:
jenkins-bot 2021-10-08 11:19:51 +00:00 committed by Gerrit Code Review
commit 871dd4486c
2 changed files with 5 additions and 0 deletions

View file

@ -175,6 +175,7 @@ ve.ui.MWTransclusionDialog.prototype.addTemplatePlaceholder = function () {
this.addPart( new ve.dm.MWTemplatePlaceholderModel( this.transclusionModel ) );
this.autoExpandSidebar();
this.bookletLayout.getOutlineControls().toggle( true );
this.$element.removeClass( 've-ui-mwTransclusionDialog-single-transclusion' );
};
/**
@ -186,6 +187,7 @@ ve.ui.MWTransclusionDialog.prototype.addContent = function () {
this.addPart( new ve.dm.MWTransclusionContentModel( this.transclusionModel ) );
this.autoExpandSidebar();
this.bookletLayout.getOutlineControls().toggle( true );
this.$element.removeClass( 've-ui-mwTransclusionDialog-single-transclusion' );
};
/**

View file

@ -79,10 +79,13 @@
right: 0;
bottom: 2.5em;
overflow: auto;
/* Compensate for 2 * 2px padding on the .oo-ui-outlineControlsWidget + 1px border */
margin-bottom: 5px;
}
.ve-ui-mwTransclusionDialog-single-transclusion .ve-ui-mwTemplateDialog-pocSidebar-debug-container {
bottom: 0;
margin-bottom: 0;
}
.ve-ui-mwTemplateDialog-pocSidebar-debug-container > .oo-ui-outlineSelectWidget {