Skip to content

Commit

Permalink
#9 fix bug with ng select width
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony-Jhoiro committed Jul 25, 2019
1 parent 79b0679 commit fe1ef06
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
</div>
<div class="right-side">
<!--Column Selector-->
<ng-select class="column-selector custom" bindLabel="name"
<ng-select class="column-selector custom auto-width" bindLabel="name"
placeholder="Columns : {{ columnActive }}" [items]="columns" [closeOnSelect]="false"
(change)="resetColumnDrop" [searchable]="false" [clearable]="false">

Expand All @@ -53,7 +53,7 @@
</ng-select>

<!--Page size selector-->
<ng-select class="column-selector custom page-size" bindLabel="name"
<ng-select class="column-selector custom page-size auto-width" bindLabel="name"
placeholder="Show : {{ page.size }}" [(ngModel)]="page.size" [items]="[10, 25, 50, 100]"
[closeOnSelect]="true" [clearable]="false" (change)="applyChange()">

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@


<!--Filter Selector-->
<ng-select class="column-selector custom" bindLabel="name" placeholder="Add Filters"
<ng-select class="column-selector custom auto-width" bindLabel="name" placeholder="Add Filters"
[items]="searchableColumns" [closeOnSelect]="false" [searchable]="true" [clearable]="false">

<!--Content in the top container-->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<ng-select class="custom"
<ng-select class="custom auto-width"
[items]="dataList"
[selectableGroup]="true"
[multiple]="column.param.multiple"
Expand Down
2 changes: 1 addition & 1 deletion src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ body {
margin: 2px;
cursor: pointer;
}
ng-select .ng-dropdown-panel {
ng-select.auto-width .ng-dropdown-panel {
width: auto !important;
max-width: 550px;
}
Expand Down

0 comments on commit fe1ef06

Please sign in to comment.