diff --git a/src/viewer/index.ts b/src/viewer/index.ts index 43a2f32..b87a18d 100644 --- a/src/viewer/index.ts +++ b/src/viewer/index.ts @@ -520,7 +520,7 @@ export class LigandViewer { for (const s of this._plugin.managers.structure.hierarchy.current.structures) { for (const c of s.components) { const isHidden = c.cell.state.isHidden === true || !this.customState.showLabels; - await this._plugin.builders.structure.representation.addRepresentation(c.cell, { type: 'label', typeParams: { level: 'element', fontQuality: 4, borderColor: ColorNames.black, ignoreHydrogens: this.customState.ignoreHydrogens } }, { initialState: { isHidden } }); + await this._plugin.builders.structure.representation.addRepresentation(c.cell, { type: 'label', typeParams: { level: 'element', fontQuality: 4, borderColor: ColorNames.black, attachment: 'bottom-left', ignoreHydrogens: this.customState.ignoreHydrogens } }, { initialState: { isHidden } }); } } }