Resolves #987 -- start goal on the right

This commit is contained in:
Peter Cottle 2022-09-03 11:19:32 -07:00
parent 88a6d34e91
commit 27e6454aa0
3 changed files with 7 additions and 5 deletions

View file

@ -223,7 +223,9 @@ var Level = Sandbox.extend({
// repo visualization a bit to make room. This way, you could have the goal window hang out on
// the right side of the screen and still see the repo visualization.
this.goalVis.customEvents.on('drag', function(event, ui) {
if (ui.position.left > 0.5 * $(window).width()) {
// our left is a negative value now that we start goal windows on the
// right, so we have to take absolute value
if (Math.abs(ui.position.left) < 0.4 * $(window).width()) {
if (!$('#goalPlaceholder').is(':visible')) {
$('#goalPlaceholder').show();
this.mainVis.myResize();

View file

@ -672,7 +672,7 @@ var CanvasTerminalHolder = BaseView.extend({
// Set the new position/size
this.$terminal.animate({
left: left + 'px',
right: right + 'px',
top: top + 'px',
height: height + 'px'
}, this.getAnimationTime(), function () {