Skip to content

Commit

Permalink
Merge pull request #420 from chengyumeng/hotfix/overview_page_bad
Browse files Browse the repository at this point in the history
fix the bug of can not open overview page
  • Loading branch information
70data authored May 31, 2019
2 parents 6c6c685 + 1aa74cb commit f8dc535
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ matrix:
script:
- pwd
- echo '' > /home/travis/gopath/src/github.com/Qihoo360/wayne/src/backend/conf/dev.conf
- export GO111MODULE=on
- cd src/backend && go run main.go -h
- language: node_js
os:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
</div>
</ng-container>
<div class="cluster-more" (click)="showMoreCluster()" *ngIf="clusters.length > showNumber">
<clr-icon shape="angle-double" [class.red-dot]="redDot.detailShowCluster"></clr-icon>
<clr-icon shape="angle-double"></clr-icon>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ export class OverviewComponent implements OnInit {
}

getClusterMaxNumber() {
return Math.floor((this.element.nativeElement.querySelector('.form-box').offsetWidth * 0.83 - 20) / 140);
return Math.floor((this.element.nativeElement.querySelector('.clr-col-sm-10').offsetWidth * 0.83 - 20) / 140);
}

showMoreCluster() {
this.showNumber = this.clusters.length;
}
}

0 comments on commit f8dc535

Please sign in to comment.