fixing canvas size in toucheffect demo
removed margins in demo controls
This commit is contained in:
Родитель
c2ddf5b631
Коммит
1325f156a2
|
@ -56,8 +56,8 @@
|
|||
var sizeCanvas = function () {
|
||||
canvasElm = document.getElementById('canvas');
|
||||
|
||||
canvasElm.width = document.documentElement.clientWidth;
|
||||
canvasElm.height = document.documentElement.clientHeight;
|
||||
canvasElm.width = canvasElm.clientWidth;
|
||||
canvasElm.height = canvasElm.clientWidth * 9 / 16;
|
||||
};
|
||||
|
||||
// Create physics objects for the particles
|
||||
|
|
|
@ -57,6 +57,10 @@
|
|||
vertical-align: top;
|
||||
}
|
||||
|
||||
.control-group * + * {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
#demo-controlsgripper {
|
||||
display: inline-block;
|
||||
width: 50px;
|
||||
|
@ -65,6 +69,7 @@
|
|||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
cursor: pointer;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.demo-controlsactive > #demo-controlsgripper {
|
||||
|
|
Загрузка…
Ссылка в новой задаче