From 4157844178f656ab4d16ac32275c33f705447eff Mon Sep 17 00:00:00 2001 From: Kristof De Langhe Date: Mon, 16 Sep 2019 17:45:36 +0200 Subject: [PATCH] 64961: Fixed jumping of layout on hiding other-format --- .../edit-bitstream-page/edit-bitstream-page.component.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/+bitstream-page/edit-bitstream-page/edit-bitstream-page.component.ts b/src/app/+bitstream-page/edit-bitstream-page/edit-bitstream-page.component.ts index 3860f40b03..c5c6db3694 100644 --- a/src/app/+bitstream-page/edit-bitstream-page/edit-bitstream-page.component.ts +++ b/src/app/+bitstream-page/edit-bitstream-page/edit-bitstream-page.component.ts @@ -175,7 +175,7 @@ export class EditBitstreamPageComponent implements OnInit, OnDestroy { /** * The base layout of the "Other Format" input */ - otherFormatBaseLayout = 'col col-sm-6'; + otherFormatBaseLayout = 'col col-sm-6 d-inline-block'; /** * Layout used for structuring the form inputs @@ -208,7 +208,7 @@ export class EditBitstreamPageComponent implements OnInit, OnDestroy { }, otherFormat: { grid: { - host: this.otherFormatBaseLayout + ' d-none' + host: this.otherFormatBaseLayout + ' invisible' } }, fileNamePrimaryContainer: { @@ -335,9 +335,9 @@ export class EditBitstreamPageComponent implements OnInit, OnDestroy { */ updateOtherFormatLayout(selectedId: string) { if (this.isUnknownFormat(selectedId)) { - this.formLayout.otherFormat.grid.host = this.otherFormatBaseLayout + ' d-inline-block'; + this.formLayout.otherFormat.grid.host = this.otherFormatBaseLayout; } else { - this.formLayout.otherFormat.grid.host = this.otherFormatBaseLayout + ' d-none'; + this.formLayout.otherFormat.grid.host = this.otherFormatBaseLayout + ' invisible'; } }