git @ Cat's Eye Technologies Canvas-Feedback / ef03454
Put the buttons underneath the canvas instead. Chris Pressey 10 years ago
1 changed file(s) with 5 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
2020 canvas.style.border = "1px solid black";
2121 config.canvas = canvas;
2222
23 var buttonPanel = yoob.makeDiv(container);
24 yoob.makeButton(buttonPanel, 'Restart', function() { t.reset(); });
25 yoob.makeButton(buttonPanel, 'Pause', function() { t.pause(); });
26 yoob.makeButton(buttonPanel, 'Resume', function() { t.resume(); });
27
2328 var controlPanel = config.controlPanel || container;
24
25 yoob.makeButton(controlPanel, 'Restart', function() { t.reset(); });
26 yoob.makeButton(controlPanel, 'Pause', function() { t.pause(); });
27 yoob.makeButton(controlPanel, 'Resume', function() { t.resume(); });
28 yoob.makeLineBreak(controlPanel);
2929
3030 var stylePanel = function(panel) {
3131 panel.style.background = "#e0e0e0";