Skip to content

Commit

Permalink
fixed cell positioning
Browse files Browse the repository at this point in the history
  • Loading branch information
stevewirts committed Nov 14, 2014
1 parent 516878d commit fd9067c
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"main": "fin-hypergrid.html",
"dependencies": {
"polymer": "Polymer/polymer#^0.4.0",
"fin-canvas": "~0.0.3",
"fin-canvas": "~0.0.5",
"fin-rectangle": "~0.2.2",
"shadow-bar": "~0.12.0"
},
Expand Down
2 changes: 1 addition & 1 deletion demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</head>
<body unresolved>

<fin-hypergrid></fin-hypergrid>
<fin-hypergrid style="position:absolute;width:100%;height:100%" ></fin-hypergrid>

</body>
</html>
6 changes: 5 additions & 1 deletion fin-hypergrid.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
:host {

position: relative;
top: 0;
left: 0;
right: 0;
left: 0;
}
2 changes: 2 additions & 0 deletions fin-hypergrid.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
<script src="js/Hypergrid.js"></script>
<polymer-element name="fin-hypergrid">
<template>
<link rel="stylesheet" href="fin-hypergrid.css" />
<fin-canvas></fin-canvas>
</template>
<script src="fin-hypergrid.js"></script>
</polymer-element>
5 changes: 2 additions & 3 deletions js/Hypergrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -356,9 +356,8 @@
};

self.initShadowRoot = function() {
var shadowRoot = this.createShadowRoot();
this.getShadowRoot = function() {
return shadowRoot;
return this.shadowRoot;
};
};

Expand All @@ -367,7 +366,7 @@

var self = this;
var shadowRoot = this.getShadowRoot();
var domCanvas = document.createElement('fin-canvas');
var domCanvas = shadowRoot.querySelector('fin-canvas');

domCanvas.setAttribute('fps', constants.repaintIntervalRate || 15);

Expand Down

0 comments on commit fd9067c

Please sign in to comment.