Skip to content
This repository has been archived by the owner on May 1, 2023. It is now read-only.

Commit

Permalink
fix(charts): fix selects position if scrolled
Browse files Browse the repository at this point in the history
It is fixed in Material 1.0.1.
Revert the workaround.
  • Loading branch information
albertosantini committed Dec 19, 2015
1 parent 62d9357 commit fcee311
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/client/app/charts/charts.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<md-select ng-model="vm.selectedGranularity" aria-label="Granularity"
ng-change="vm.changeChart(vm.selectedInstrument, vm.selectedGranularity)">
<md-option ng-value="granularity"
ng-selected="granularity == vm.selectedGranularity || $index == 0"
ng-selected="granularity == vm.selectedGranularity"
ng-repeat="granularity in vm.granularities">
{{ granularity }}
</md-option>
Expand Down
2 changes: 1 addition & 1 deletion src/client/app/charts/charts.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
vm.selectedInstrument = "EUR_USD";

vm.granularities = [
"M5", // first due to https://github.com/angular/material/issues/5435
"S5",
"S10",
"S15",
Expand All @@ -24,6 +23,7 @@
"M2",
"M3",
"M4",
"M5",
"M10",
"M15",
"M30",
Expand Down
2 changes: 1 addition & 1 deletion src/client/app/charts/order-dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
vm.selectedInstrument = params.selectedInstrument;
vm.changeMarket(vm.selectedInstrument);
vm.expires = [
{label: "1 Week", value: 7 * 60 * 60 * 24 * 1000}, // first due to https://github.com/angular/material/issues/5435
{label: "1 Hour", value: 60 * 60 * 1000},
{label: "2 Hours", value: 2 * 60 * 60 * 1000},
{label: "3 Hours", value: 3 * 60 * 60 * 1000},
Expand All @@ -36,6 +35,7 @@
{label: "18 Hours", value: 18 * 60 * 60 * 1000},
{label: "1 Day", value: 60 * 60 * 24 * 1000},
{label: "2 Days", value: 2 * 60 * 60 * 24 * 1000},
{label: "1 Week", value: 7 * 60 * 60 * 24 * 1000},
{label: "1 Month", value: 30 * 60 * 60 * 24 * 1000},
{label: "2 Months", value: 60 * 60 * 60 * 24 * 1000},
{label: "3 Months", value: 90 * 60 * 60 * 24 * 1000}
Expand Down

0 comments on commit fcee311

Please sign in to comment.