Skip to content

[Interface] Improvements of responsive design #19

@Anicky

Description

@Anicky

The canvas is responsive but only for the width. If the screen has a small height, the canvas is not complete on the screen.

Some tests :

var canvasMaxHeight = $(window).innerHeight() - 95;
var canvasMaxWidth = $('.panel-game').innerWidth();

var canvasSize = Math.min(canvasMaxHeight, canvasMaxWidth) + "px";

$("#canvas").attr('width', canvasSize).attr('height', canvasSize);

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions