diff --git a/.github/CHANGELOG.md b/.github/CHANGELOG.md index affacd06b5f..976819922c9 100644 --- a/.github/CHANGELOG.md +++ b/.github/CHANGELOG.md @@ -87,6 +87,7 @@ 1. [A380X/SD] Add brake temperature color change to amber when brakes are hot - @heclak (Heclak) 1. [A380X/FCU] Fix display of values on FCU during light test - @heclak (Heclak) 1. [A380X/FMS] Fix VLS computation error for CONF 1, might have lead to FMS crashes during climb out - @flogross89 (floridude) +1. [A32NX/PFD] Fix Radio DH not displaying correctly when Baro DA is already entered - @MrJigs7 (MrJigs) ## 0.12.0 diff --git a/fbw-a32nx/src/systems/instruments/src/PFD/FMA.tsx b/fbw-a32nx/src/systems/instruments/src/PFD/FMA.tsx index aeadd848398..b52478739e2 100644 --- a/fbw-a32nx/src/systems/instruments/src/PFD/FMA.tsx +++ b/fbw-a32nx/src/systems/instruments/src/PFD/FMA.tsx @@ -1737,6 +1737,10 @@ class D3Cell extends DisplayComponent<{ bus: ArincEventBus }> { this.dh, this.mda, ); + private readonly DhModexPos = MappedSubject.create( + ([noDhSelected]) => (noDhSelected ? 118.38384 : 103.47), + this.noDhSelected, + ); onAfterRender(node: VNode): void { super.onAfterRender(node); @@ -1754,17 +1758,19 @@ class D3Cell extends DisplayComponent<{ bus: ArincEventBus }> { ref={this.textRef} class={{ FontSmallest: this.noDhSelected.map(SubscribableMapFunctions.not()), + StartAlign: this.noDhSelected.map(SubscribableMapFunctions.not()), FontMedium: this.noDhSelected, - MiddleAlign: true, + MiddleAlign: this.noDhSelected, White: true, }} - x="118.38384" - y="21.104172" + x={this.DhModexPos} + y="20.75" > {this.mdaDhMode} v.length <= 0) }} - style="white-space: pre" + class={{ EndAlign: true, Cyan: true, HiddenElement: this.mdaDhValueText.map((v) => v.length <= 0) }} + x="133.425" + y="20.75" > {this.mdaDhValueText}