mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-04-20 15:01:55 -04:00
Fixing mobile logo scaling
This commit is contained in:
@@ -134,12 +134,18 @@ Engine = Base.extend({
|
||||
},
|
||||
|
||||
setupTessellation: function(canvas){
|
||||
var size;
|
||||
this.shapes = [];
|
||||
if (window.innerWidth < 570) {
|
||||
size = 300;
|
||||
} else {
|
||||
size = 360;
|
||||
}
|
||||
this.logo = new Engine.Shape(
|
||||
-(180),
|
||||
-(220),
|
||||
360,
|
||||
360,
|
||||
-(size / 2),
|
||||
-(size / 2 + 40),
|
||||
size,
|
||||
size,
|
||||
Logo.points,
|
||||
Logo.polygons
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user