mirror of
https://github.com/trebonian/visual6502.git
synced 2024-06-17 21:29:59 +00:00
panes resize when chip graphics are shown/hidden
This commit is contained in:
parent
0842501bb7
commit
93e6d662df
|
@ -317,24 +317,29 @@ var chipsurround;
|
||||||
function updateChipLayoutVisibility(isOn){
|
function updateChipLayoutVisibility(isOn){
|
||||||
chipLayoutIsVisible=isOn;
|
chipLayoutIsVisible=isOn;
|
||||||
if(chipLayoutIsVisible) {
|
if(chipLayoutIsVisible) {
|
||||||
|
updateChipLayoutAnimation(true);
|
||||||
|
// resize the two panes appropriately
|
||||||
|
$("#frame").trigger("resize", [ 810 ]);
|
||||||
|
$("#rightcolumn").trigger("resize", [ 738 - 180 ]);
|
||||||
|
// replace the Show Chip button with the chip graphics
|
||||||
chipsurround=document.getElementById('chipsurround');
|
chipsurround=document.getElementById('chipsurround');
|
||||||
chipsurround.style.display = 'block';
|
chipsurround.style.display = 'block';
|
||||||
if(expertMode)
|
if(expertMode)
|
||||||
document.getElementById('layoutControlPanel').style.display = 'block';
|
document.getElementById('layoutControlPanel').style.display = 'block';
|
||||||
document.getElementById('nochip').style.display = 'none';
|
document.getElementById('nochip').style.display = 'none';
|
||||||
//document.getElementById('logstreamscroller').style.height="260px";
|
|
||||||
updateChipLayoutAnimation(true);
|
|
||||||
setStatus('loading graphics...');
|
|
||||||
// allow the browser to respond while we load the graphics
|
// allow the browser to respond while we load the graphics
|
||||||
|
setStatus('loading graphics...');
|
||||||
setTimeout(setupChipLayoutGraphics, 0);
|
setTimeout(setupChipLayoutGraphics, 0);
|
||||||
} else {
|
} else {
|
||||||
// cannot animate the layout if there is no canvas
|
// cannot animate the layout if there is no canvas
|
||||||
updateChipLayoutAnimation(false);
|
updateChipLayoutAnimation(false);
|
||||||
|
// resize the two panes appropriately
|
||||||
|
$("#frame").trigger("resize", [ 120 ]);
|
||||||
|
$("#rightcolumn").trigger("resize", [ 200 ]);
|
||||||
// replace the layout display with a button to show it
|
// replace the layout display with a button to show it
|
||||||
document.getElementById('chipsurround').style.display = 'none';
|
document.getElementById('chipsurround').style.display = 'none';
|
||||||
document.getElementById('layoutControlPanel').style.display = 'none';
|
document.getElementById('layoutControlPanel').style.display = 'none';
|
||||||
document.getElementById('nochip').style.display = 'block';
|
document.getElementById('nochip').style.display = 'block';
|
||||||
//document.getElementById('logstreamscroller').style.height="880px";
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user