mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 15:33:04 +00:00
64961: Fixed jumping of layout on hiding other-format
This commit is contained in:
@@ -175,7 +175,7 @@ export class EditBitstreamPageComponent implements OnInit, OnDestroy {
|
|||||||
/**
|
/**
|
||||||
* The base layout of the "Other Format" input
|
* 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
|
* Layout used for structuring the form inputs
|
||||||
@@ -208,7 +208,7 @@ export class EditBitstreamPageComponent implements OnInit, OnDestroy {
|
|||||||
},
|
},
|
||||||
otherFormat: {
|
otherFormat: {
|
||||||
grid: {
|
grid: {
|
||||||
host: this.otherFormatBaseLayout + ' d-none'
|
host: this.otherFormatBaseLayout + ' invisible'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
fileNamePrimaryContainer: {
|
fileNamePrimaryContainer: {
|
||||||
@@ -335,9 +335,9 @@ export class EditBitstreamPageComponent implements OnInit, OnDestroy {
|
|||||||
*/
|
*/
|
||||||
updateOtherFormatLayout(selectedId: string) {
|
updateOtherFormatLayout(selectedId: string) {
|
||||||
if (this.isUnknownFormat(selectedId)) {
|
if (this.isUnknownFormat(selectedId)) {
|
||||||
this.formLayout.otherFormat.grid.host = this.otherFormatBaseLayout + ' d-inline-block';
|
this.formLayout.otherFormat.grid.host = this.otherFormatBaseLayout;
|
||||||
} else {
|
} else {
|
||||||
this.formLayout.otherFormat.grid.host = this.otherFormatBaseLayout + ' d-none';
|
this.formLayout.otherFormat.grid.host = this.otherFormatBaseLayout + ' invisible';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user