Skip to content

Commit

Permalink
fix resize error when there is not exists toolbar
Browse files Browse the repository at this point in the history
  • Loading branch information
itnpeople committed Jul 4, 2022
1 parent 597ed0d commit 2524198
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 16 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kore-board",
"version": "0.5.1",
"version": "0.5.2",
"description": "Kubernetes multi-clusters dashboard",
"repository": {
"type": "git",
Expand Down
4 changes: 2 additions & 2 deletions scripts/install/kubernetes/helm-chart/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: kore-board
type: application
version: 0.5.1
appVersion: v0.5.1
version: 0.5.2
appVersion: v0.5.2
description: Kubernetes multi-clusters dashboard
28 changes: 19 additions & 9 deletions scripts/install/kubernetes/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ entries:
acornsoft-dashboard:
- apiVersion: v2
appVersion: v0.3.0
created: "2022-07-01T15:15:14.062375+09:00"
created: "2022-07-04T10:29:19.866627+09:00"
description: Acornsoft Kubernetes Dashboard
digest: 9063661ae9ba91998ab0375fa3b96cf3c8f247816b77a734716357930f07d3b3
name: acornsoft-dashboard
Expand All @@ -13,7 +13,7 @@ entries:
version: 0.3.0
- apiVersion: v2
appVersion: v0.2.0
created: "2022-07-01T15:15:14.061557+09:00"
created: "2022-07-04T10:29:19.865039+09:00"
description: Acornsoft Kubernetes Dashboard
digest: 90d6e245dbbb0098514374152c92e78ac65bd50fadee0a69250ee0450257f879
name: acornsoft-dashboard
Expand All @@ -23,7 +23,7 @@ entries:
version: 0.2.0
- apiVersion: v2
appVersion: v0.1.2
created: "2022-07-01T15:15:14.060523+09:00"
created: "2022-07-04T10:29:19.863023+09:00"
description: Acornsoft Kubernetes Dashboard
digest: 3205f6217826ba691c6f040ab23809cb0a3047ab6f5295bea2100d874b82e519
name: acornsoft-dashboard
Expand All @@ -32,9 +32,19 @@ entries:
- acornsoft-dashboard-0.1.2.tgz
version: 0.1.2
kore-board:
- apiVersion: v2
appVersion: v0.5.2
created: "2022-07-04T10:29:19.877761+09:00"
description: Kubernetes multi-clusters dashboard
digest: a272ff9069e61eb45045d808d917ea50669d91af28f091fff5c12ec66231ff98
name: kore-board
type: application
urls:
- kore-board-0.5.2.tgz
version: 0.5.2
- apiVersion: v2
appVersion: v0.5.1
created: "2022-07-01T15:15:14.068769+09:00"
created: "2022-07-04T10:29:19.875189+09:00"
description: Kubernetes multi-clusters dashboard
digest: 9fee906403036f7aca6971bcb39b2a83afcb1dbd7feafea31d89d954ce7221d1
name: kore-board
Expand All @@ -44,7 +54,7 @@ entries:
version: 0.5.1
- apiVersion: v2
appVersion: v0.5.0
created: "2022-07-01T15:15:14.066458+09:00"
created: "2022-07-04T10:29:19.874251+09:00"
description: Kubernetes multi-clusters dashboard
digest: e60368b94335ed7ab63dc03c6a6c2e0e6f706dcae823d9a55f1e2f86bfc089d6
name: kore-board
Expand All @@ -54,7 +64,7 @@ entries:
version: 0.5.0
- apiVersion: v2
appVersion: v0.4.2
created: "2022-07-01T15:15:14.065225+09:00"
created: "2022-07-04T10:29:19.87178+09:00"
description: Kubernetes multi-clusters dashboard
digest: 242fd23d5991dd585cec827ea5500c31801904660fc70c81b5b2d784964f25c8
name: kore-board
Expand All @@ -64,7 +74,7 @@ entries:
version: 0.4.2
- apiVersion: v2
appVersion: v0.4.0
created: "2022-07-01T15:15:14.064201+09:00"
created: "2022-07-04T10:29:19.869951+09:00"
description: Kubernetes multi-clusters dashboard
digest: 86b6253fad9c2843aa0555ac2dbfdba9020fdbf16fb626564235c84879ed5ee2
name: kore-board
Expand All @@ -74,12 +84,12 @@ entries:
version: 0.4.0
- apiVersion: v2
appVersion: v0.3.3
created: "2022-07-01T15:15:14.063278+09:00"
created: "2022-07-04T10:29:19.868224+09:00"
description: Kubernetes multi-clusters dashboard
digest: 5421b7f7072b0047e2c91c7d2f546271c085b1672eef703c7c8114be2c9c007d
name: kore-board
type: application
urls:
- kore-board-0.3.3.tgz
version: 0.3.3
generated: "2022-07-01T15:15:14.058506+09:00"
generated: "2022-07-04T10:29:19.860316+09:00"
Binary file added scripts/install/kubernetes/kore-board-0.5.2.tgz
Binary file not shown.
2 changes: 1 addition & 1 deletion src/app/frontend/components/graph/graph.base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export abstract class GraphBase {
this.svg.attr("width", bounds.width).attr("height", bounds.height);
const k:number = Math.round(Math.min(bounds.width/(initWH.width), bounds.height/(initWH.height))*100)/100;
Transform.instance(this.outlineWrapEl.node()!).scale(k);
UI.align(this.toolbarEl.node()!, conf.global.toolbar.align.horizontal, conf.global.toolbar.align.vertical);
if(this.toolbarEl) UI.align(this.toolbarEl.node()!, conf.global.toolbar.align.horizontal, conf.global.toolbar.align.vertical);
}
if(!d3.select(window).on("resize.updatesvg")) d3.select(window).on("resize.updatesvg", this.resizeListener );

Expand Down

0 comments on commit 2524198

Please sign in to comment.