Skip to content

Commit

Permalink
fixed up/down arrow with scroll bug
Browse files Browse the repository at this point in the history
  • Loading branch information
stevewirts committed Apr 15, 2015
1 parent ceae23b commit 496c749
Show file tree
Hide file tree
Showing 41 changed files with 120 additions and 23 deletions.
55 changes: 45 additions & 10 deletions fin-hypergrid.dev.html
Original file line number Diff line number Diff line change
Expand Up @@ -21322,6 +21322,7 @@






</style>
Expand Down Expand Up @@ -22405,6 +22406,7 @@






</style>
Expand Down Expand Up @@ -22634,6 +22636,7 @@






</style>
Expand Down Expand Up @@ -22917,6 +22920,7 @@






</style>
Expand Down Expand Up @@ -23200,6 +23204,7 @@






</style>
Expand Down Expand Up @@ -23523,6 +23528,7 @@




</style>
</template>
<script>'use strict';
Expand Down Expand Up @@ -23618,6 +23624,7 @@






</style>
Expand Down Expand Up @@ -23784,6 +23791,7 @@






</style>
Expand Down Expand Up @@ -24425,6 +24433,7 @@






</style>
Expand Down Expand Up @@ -24698,6 +24707,7 @@






</style>
Expand Down Expand Up @@ -24875,6 +24885,7 @@






</style>
Expand Down Expand Up @@ -25046,6 +25057,7 @@






</style>
Expand Down Expand Up @@ -25231,6 +25243,7 @@






</style>
Expand Down Expand Up @@ -25533,6 +25546,7 @@






</style>
Expand Down Expand Up @@ -26155,6 +26169,7 @@






</style>
Expand Down Expand Up @@ -26293,6 +26308,7 @@






</style>
Expand Down Expand Up @@ -26378,6 +26394,7 @@






</style>
Expand Down Expand Up @@ -27200,6 +27217,7 @@






</style>
Expand Down Expand Up @@ -27381,6 +27399,7 @@






</style>
Expand Down Expand Up @@ -27821,6 +27840,7 @@






</style>
Expand Down Expand Up @@ -27877,7 +27897,7 @@
this.tableState.sorts = [];
this.tableState.sortLookup = {};
this.tableState.sorted = {};
this.sortStates = [' -', ' ^', ' v'];
this.sortStates = [' -', ' ', ' '];

this.permuteInterval = 250;
this.values = new Array(this.rows * this.columns);
Expand Down Expand Up @@ -28420,6 +28440,7 @@






</style>
Expand All @@ -28441,7 +28462,7 @@
ready: function() {
this.readyInit();
this.tableState.sorted = [];
this.sortStates = [' ', ' \u2191', ' \u2193'];
this.sortStates = [' ', ' ', ' '];
},

isValidIdentifer: function(string) {
Expand Down Expand Up @@ -28803,6 +28824,7 @@






</style>
Expand Down Expand Up @@ -29217,6 +29239,7 @@






</style>
Expand Down Expand Up @@ -29282,16 +29305,16 @@

//sort states are also the visual queues in the column headers
//* '' no sort
//* ^ sort ascending
//* v sort descending
//* |^| sort absolute value ascending
//* |v| sort absolute value descending;
//* sort ascending
//* sort descending
//* sort absolute value ascending
//* sort absolute value descending;
// \u25be
var sortMap = {
a: '\u2191',
d: '\u2193',
A: '\u2912',
D: '\u2913'
a: '↑', //'\u2191',
d: '↓', //'\u2193',
A: '⤒', //'\u2912',
D: '⤓', //'\u2913'
};

var sortStates = {
Expand Down Expand Up @@ -29836,6 +29859,7 @@




</style>
</template>
<script>'use strict';
Expand Down Expand Up @@ -30144,6 +30168,7 @@






</style>
Expand Down Expand Up @@ -30426,6 +30451,7 @@






</style>
Expand Down Expand Up @@ -30654,6 +30680,7 @@






</style>
Expand Down Expand Up @@ -30819,6 +30846,7 @@






</style>
Expand Down Expand Up @@ -30987,6 +31015,7 @@






</style>
Expand Down Expand Up @@ -31149,6 +31178,7 @@






</style>
Expand Down Expand Up @@ -31311,6 +31341,7 @@






</style>
Expand Down Expand Up @@ -31473,6 +31504,7 @@






</style>
Expand Down Expand Up @@ -31700,6 +31732,7 @@






</style>
Expand Down Expand Up @@ -33323,6 +33356,7 @@
* @method setVScrollValue(y)
*/
setVScrollValue: function(y) {
y = Math.max(0, y);
var self = this;
this.getBehavior()._setScrollPositionY(y);
var oldY = this.vScrlValue;
Expand Down Expand Up @@ -33353,6 +33387,7 @@
* @method setHScrollValue(x)
*/
setHScrollValue: function(x) {
x = Math.max(0, x);
var self = this;
this.getBehavior()._setScrollPositionX(x);
var oldX = this.hScrlValue;
Expand Down
2 changes: 1 addition & 1 deletion fin-hypergrid.min.html

Large diffs are not rendered by default.

26 changes: 26 additions & 0 deletions local.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"devtools_port": 9090,
"startup_app": {
"autoShow": true,
"name": "hypergrid-demo",
"url": "http://openfin.github.io/fin-hypergrid/components/fin-hypergrid/demo.html",
"uuid": "hypergrid-demo",
"applicationIcon": "http://openfin.github.io/fin-hypergrid/components/fin-hypergrid/images/openfin.ico",
"contextMenu" : true
},
"runtime": {
"arguments": "",
"version": "alpha",
"assets": [{
"src": "http://10.9.98.117:8080/q.zip",
"dest": "q",
"version": "0.0.1"
}]
},
"shortcut": {
"company": "OpenFin",
"description": "Hypergrid by OpenFin",
"icon": "http://openfin.github.io/fin-hypergrid/components/fin-hypergrid/images/openfin.ico",
"name": "Hypergrid-Demo-Local"
}
}
1 change: 1 addition & 0 deletions polymer/css/behaviors/fin-hypergrid-behavior-base.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,6 @@






1 change: 1 addition & 0 deletions polymer/css/behaviors/fin-hypergrid-behavior-default.css
Original file line number Diff line number Diff line change
Expand Up @@ -142,5 +142,6 @@






1 change: 1 addition & 0 deletions polymer/css/behaviors/fin-hypergrid-behavior-gol.css
Original file line number Diff line number Diff line change
Expand Up @@ -142,5 +142,6 @@






1 change: 1 addition & 0 deletions polymer/css/behaviors/fin-hypergrid-behavior-in-memory.css
Original file line number Diff line number Diff line change
Expand Up @@ -142,5 +142,6 @@






1 change: 1 addition & 0 deletions polymer/css/behaviors/fin-hypergrid-behavior-json.css
Original file line number Diff line number Diff line change
Expand Up @@ -142,5 +142,6 @@






1 change: 1 addition & 0 deletions polymer/css/behaviors/fin-hypergrid-behavior-q.css
Original file line number Diff line number Diff line change
Expand Up @@ -142,5 +142,6 @@






1 change: 1 addition & 0 deletions polymer/css/behaviors/fin-hypergrid-behavior-qtree.css
Original file line number Diff line number Diff line change
Expand Up @@ -142,5 +142,6 @@






Loading

0 comments on commit 496c749

Please sign in to comment.