Skip to content
This repository has been archived by the owner on Sep 3, 2019. It is now read-only.

Commit

Permalink
Merge pull request #471 from LLK/fix_ext_ui
Browse files Browse the repository at this point in the history
Fixed the indicator placement and line before it
  • Loading branch information
sclements committed Aug 21, 2014
2 parents 74ab748 + 0517505 commit f30fb33
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/scratch/PaletteBuilder.as
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,7 @@ public class PaletteBuilder {
return m;
}

protected const pwidth:int = 215;
protected function addExtensionSeparator(ext:ScratchExtension):void {
function extensionMenu(ignore:*):void {
var m:Menu = getExtensionMenu(ext);
Expand All @@ -386,7 +387,7 @@ public class PaletteBuilder {
var indicator:IndicatorLight = new IndicatorLight(ext);
indicator.addEventListener(MouseEvent.CLICK, function(e:Event):void {Scratch.app.showTip('extensions');}, false, 0, true);
app.extensionManager.updateIndicator(indicator, ext);
indicator.x = app.palette.width - 30;
indicator.x = pwidth - 30;
indicator.y = nextY + 2;
app.palette.addChild(indicator);

Expand All @@ -395,7 +396,7 @@ public class PaletteBuilder {

protected function addLineForExtensionTitle(titleButton:IconButton, ext:ScratchExtension):void {
var x:int = titleButton.width + 12;
addLine(x, nextY + 9, app.palette.width - x - 38);
addLine(x, nextY + 9, pwidth - x - 38);
}

private function addBlocksForExtension(ext:ScratchExtension):void {
Expand Down

0 comments on commit f30fb33

Please sign in to comment.