Skip to content

Commit

Permalink
minor comments and formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
davidedc committed Aug 7, 2020
1 parent b3ee7f9 commit 9d376f1
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 8 deletions.
1 change: 0 additions & 1 deletion src/HandleMorph.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

class HandleMorph extends Widget


target: nil
inset: nil
type: nil
Expand Down
2 changes: 0 additions & 2 deletions src/WindowWdgt.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -526,8 +526,6 @@ class WindowWdgt extends SimpleVerticalStackPanelWdgt
buttonBounds = buttonBounds.setBoundsWidthAndHeight closeIconSize, closeIconSize
@internalExternalSwitchButton.doLayout buttonBounds



@resizer?.silentUpdateResizerHandlePosition()

@_adjustingContentsBounds = false
5 changes: 3 additions & 2 deletions src/basic-widgets/ScrollPanelWdgt.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,9 @@ class ScrollPanelWdgt extends PanelWdgt
@vBar.hide()

# when you add things to the ScrollPanelWdgt they actually
# end up in the Panel inside it. This also applies to
# resizing handles!
# end up in the Panel inside it.
# This would also apply to resizing handles - so we need to
# correct for that case
add: (aWdgt, position = nil, layoutSpec = LayoutSpec.ATTACHEDAS_FREEFLOATING, beingDropped, unused, positionOnScreen) ->
if aWdgt instanceof ModifiedTextTriangleAnnotationWdgt
super
Expand Down
3 changes: 0 additions & 3 deletions src/basic-widgets/Widget.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -4216,9 +4216,6 @@ class Widget extends TreeNode
@notifyAllChildrenRecursivelyThatParentHasReLayouted()
return

#if (@ instanceof LayoutableMorph) and (newBoundsForThisLayout.equals @boundingBox())
# debugger

# freefloating layouts never need
# adjusting. We marked the @layoutIsValid
# to false because it's an important breadcrumb
Expand Down
1 change: 1 addition & 0 deletions src/meta/InspectorMorph.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,7 @@ class InspectorMorph extends BoxMorph

@rawSetBounds newBoundsForThisLayout


# here we are disabling all the broken
# rectangles. The reason is that all the
# submorphs of the inspector are within the
Expand Down

0 comments on commit 9d376f1

Please sign in to comment.