Try variable resizing
This commit is contained in:
parent
30027a6556
commit
83df79aab9
2 changed files with 7 additions and 2 deletions
|
@ -57,6 +57,10 @@ export class ListLayout {
|
|||
return n * this.tileHeight;
|
||||
}
|
||||
|
||||
public pixelsToTiles(px: number): number {
|
||||
return px / this.tileHeight;
|
||||
}
|
||||
|
||||
private serialize(): ISerializedListLayout {
|
||||
return {
|
||||
numTiles: this.visibleTiles,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue