Skip to content

Commit

Permalink
Version 5.7.3
Browse files Browse the repository at this point in the history
  • Loading branch information
martynasma committed Dec 26, 2023
1 parent fb85d7b commit bb1757e
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "@amcharts/amcharts5",
"version": "5.7.2",
"version": "5.7.3",
"author": "amCharts <[email protected]> (https://www.amcharts.com/)",
"description": "amCharts 5",
"homepage": "https://www.amcharts.com/",
Expand Down
6 changes: 6 additions & 0 deletions packages/shared/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
Please note, that this project, while following numbering syntax, it DOES NOT
adhere to [Semantic Versioning](http://semver.org/spec/v2.0.0.html) rules.

## [5.7.3] - 2023-12-26

### Fixed
- `Scrollbar` background was being drawn shifted since `5.7.2`.


## [5.7.2] - 2023-12-22

### Added
Expand Down
2 changes: 1 addition & 1 deletion src/.internal/core/Registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export class Registry {
/**
* Currently running version of amCharts.
*/
readonly version: string = "5.7.2";
readonly version: string = "5.7.3";

/**
* List of applied licenses.
Expand Down
14 changes: 12 additions & 2 deletions src/.internal/core/render/Container.ts
Original file line number Diff line number Diff line change
Expand Up @@ -463,15 +463,25 @@ export class Container extends Sprite {

if($type.isNumber(minWidth) && minWidth > 0){
if(bounds.right - bounds.left < minWidth){
bounds.left = bounds.right - minWidth;
if(bounds.right >= minWidth){
bounds.left = bounds.right - minWidth;
}
else{
bounds.right = bounds.left + minWidth;
}
}
}

const minHeight = this.get("minHeight");

if($type.isNumber(minHeight) && minHeight > 0){
if(bounds.bottom - bounds.top < minHeight){
bounds.top = bounds.bottom - minHeight;
if(bounds.bottom >= minHeight){
bounds.top = bounds.bottom - minHeight;
}
else{
bounds.bottom = bounds.top + minHeight;
}
}
}
}
Expand Down

0 comments on commit bb1757e

Please sign in to comment.