Skip to content

Commit

Permalink
Pull request #5411: Bugfix/DXCF-5718 chart drawings unhide all drawin…
Browse files Browse the repository at this point in the history
…gs button is visible while nothing to unhide

Merge in DXCHARTS/dxchart5 from bugfix/DXCF-5718-chart-drawings-unhide-all-drawings-button-is-visible-while-nothing-to-unhide to master

* commit '76ebc09bd7d3b86b29787233ba0a68e173471517':
  [DXCF-5718] Chart Drawings - Unhide all drawings button is visible while nothing to unhide // copy
  [DXCF-5718] Chart Drawings - Unhide all drawings button is visible while nothing to unhide // init
  [DXCF-5718] Chart Drawings - Unhide all drawings button is visible while nothing to unhide // init

GitOrigin-RevId: 62f7973fb076a46835ef87b1ad3ec7d1c99cbced
  • Loading branch information
Keelaro1 authored and dxcity committed Jan 13, 2025
1 parent ee7a292 commit 23df0fd
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/chart/canvas/canvas-bounds-container.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
/*
* Copyright (C) 2019 - 2024 Devexperts Solutions IE Limited
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
* If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
/*
* Copyright (C) 2019 - 2024 Devexperts Solutions IE Limited
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
Expand Down Expand Up @@ -560,11 +555,11 @@ export class CanvasBoundsContainer {
}

//#region chart height ratio logic
if (this.graphsHeightRatio[CHART_UUID] === 0) {
if (!this.graphsHeightRatio[CHART_UUID] || this.graphsHeightRatio[CHART_UUID] === 0) {
chartRatio = 0;
}

if (this.graphsHeightRatio[CHART_UUID] !== 0) {
if (this.graphsHeightRatio[CHART_UUID] && this.graphsHeightRatio[CHART_UUID] !== 0) {
if (paneIsAdded) {
chartRatio = 1 * ratioForOldPec;
} else {
Expand Down

0 comments on commit 23df0fd

Please sign in to comment.