.widget { position: relative; } .widget, .widget canvas { width: 100%; height: 100%; touch-action: none; }