Skip to content

Commit

Permalink
cleanup commit history
Browse files Browse the repository at this point in the history
  • Loading branch information
JillianK committed Jun 18, 2020
1 parent 3febf5f commit 344e27f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 29 deletions.
43 changes: 14 additions & 29 deletions apps/src/StudioApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ StudioApp.prototype.init = function(config) {
) {
this.editDuringRunAlert = this.displayWorkspaceAlert(
'warning',
<div>{msg.editDuringRunMessage()}</div>,
React.createElement('div', {}, msg.editDuringRunMessage()),
true
);
}
Expand Down Expand Up @@ -3081,21 +3081,6 @@ StudioApp.prototype.displayWorkspaceAlert = function(
alertContents,
bottom = false
) {
let container;
if (bottom) {
container = this.displayAlert(
this.editCode ? '#codeTextbox' : '#codeWorkspace',
{type: type, sideMargin: 0, bottomMargin: 0, bottom: true},
alertContents
);
} else {
container = this.displayAlert(
'#codeWorkspace',
{type: type},
alertContents
);
}

var toolbarWidth;
if (this.usingBlockly_ && this.config.app === 'craft') {
// craft has a slightly different way of constructing the toolbox so we need to use
Expand All @@ -3107,18 +3092,18 @@ StudioApp.prototype.displayWorkspaceAlert = function(
toolbarWidth =
$('.droplet-palette-element').width() + $('.droplet-gutter').width();
}

if (bottom) {
$(container).css({
return this.displayAlert(
bottom && this.editCode ? '#codeTextbox' : '#codeWorkspace',
{
type: type,
sideMargin: bottom ? 0 : undefined,
bottomMargin: bottom ? 0 : undefined,
top: bottom ? undefined : $('#headers').height(),
bottom: bottom,
left: toolbarWidth
});
} else {
$(container).css({
left: toolbarWidth,
top: $('#headers').height()
});
}
return container;
},
alertContents
);
};

/**
Expand Down Expand Up @@ -3177,15 +3162,15 @@ StudioApp.prototype.displayAlert = function(
if (container.length === 0) {
container = $("<div class='react-alert ignore-transform'/>").css({
position: position,
left: 0,
left: props.left ? props.left : 0,
right: 0,
zIndex: 1000,
transform: 'scale(1.0)'
});
if (props.bottom) {
container[0].style.bottom = 0;
} else {
container[0].style.top = 0;
container[0].style.top = props.top ? `${props.top}px` : 0;
}
parent.append(container);
}
Expand Down
Binary file modified dashboard/db/schema_cache.dump
Binary file not shown.

0 comments on commit 344e27f

Please sign in to comment.