Skip to content

Commit

Permalink
Merge c21e7b7
Browse files Browse the repository at this point in the history
  • Loading branch information
chisandrei committed Aug 19, 2024
2 parents 925242c + c21e7b7 commit ba7ff02
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 23 deletions.
1 change: 1 addition & 0 deletions src/Brick-DevTool/BrAnchoredVisualAnalysisElement.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ BrAnchoredVisualAnalysisElement >> initializeScenePreview [
build);
clipChildren: false.
scalableScenePreview := scenePreview asScalableElement
zIndex: -1;
margin: (BlInsets all: 30);
border: (BlBorder builder
dashedSmall;
Expand Down
13 changes: 13 additions & 0 deletions src/Brick-DevTool/TBlDevScripterActionStep.extension.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Extension { #name : #TBlDevScripterActionStep }

{ #category : #'*Brick-DevTool' }
TBlDevScripterActionStep >> addDropdownVisualAnalysis [
^ self do
referenceSender;
label: 'Setup dropdown visual analysis';
block: [ :anElement :aUserData |
aUserData
at: BrAnchoredVisualAnalysis
put: (BrAnchoredVisualAnalysis new elementWithDropdown: anElement) ];
onParentStepTarget: self
]
8 changes: 4 additions & 4 deletions src/Brick/BrDropdownBottomLeftAptitude.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ BrDropdownBottomLeftAptitude >> initialize [
padding:
(BlInsets
top: 0
left: 0 "handle width"
bottom: 0 "handle height"
left: 0
bottom: 0
right: 0);
removeChild: handle;
addChildFirst: handle.
content
constraintsDo: [ :c |
c horizontal fitContent.
c vertical fitContentLimitedOffset: 0 "handle height" ].
c horizontal fitContentLimited.
c vertical fitContentLimited ].
handle
constraintsDo: [ :c |
c linear horizontal alignRight.
Expand Down
10 changes: 5 additions & 5 deletions src/Brick/BrDropdownBottomRightAptitude.class.st
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Class {
#name : #BrDropdownBottomRightAptitude,
#superclass : #BrAptitude,
#category : 'Brick-Dropdown - Look'
#category : #'Brick-Dropdown - Look'
}

{ #category : #initialization }
Expand All @@ -25,14 +25,14 @@ BrDropdownBottomRightAptitude >> initialize [
(BlInsets
top: 0
left: 0
bottom: handle height
right: handle width);
bottom: 0
right: 0);
removeChild: handle;
addChildFirst: handle.
content
constraintsDo: [ :c |
c horizontal fitContent.
c vertical fitContentLimitedOffset: handle height ].
c horizontal fitContentLimited.
c vertical fitContentLimited. ].
handle
constraintsDo: [ :c |
c linear horizontal alignLeft.
Expand Down
8 changes: 4 additions & 4 deletions src/Brick/BrDropdownCenterLeftAptitude.class.st
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Class {
#name : #BrDropdownCenterLeftAptitude,
#superclass : #BrAptitude,
#category : 'Brick-Dropdown - Look'
#category : #'Brick-Dropdown - Look'
}

{ #category : #initialization }
Expand All @@ -15,7 +15,7 @@ BrDropdownCenterLeftAptitude >> initialize [
handle := widget childNamed: #handle.
content := widget childNamed: #content.
widget
layout: BlFrameLayout new;
layout: BlLinearLayout horizontal;
constraintsDo: [ :c |
c horizontal fitContentLimited.
c vertical fitContentLimited.
Expand All @@ -26,8 +26,8 @@ BrDropdownCenterLeftAptitude >> initialize [
content
margin: (BlInsets left: handle width);
constraintsDo: [ :c |
c horizontal fitContent.
c vertical fitContentLimitedOffset: handle height ].
c horizontal fitContentLimited.
c vertical fitContentLimited ].
handle
constraintsDo: [ :c |
c frame horizontal alignLeft.
Expand Down
10 changes: 5 additions & 5 deletions src/Brick/BrDropdownTopLeftAptitude.class.st
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Class {
#name : #BrDropdownTopLeftAptitude,
#superclass : #BrAptitude,
#category : 'Brick-Dropdown - Look'
#category : #'Brick-Dropdown - Look'
}

{ #category : #initialization }
Expand All @@ -23,16 +23,16 @@ BrDropdownTopLeftAptitude >> initialize [
c frame vertical alignBottom ];
padding:
(BlInsets
top: handle height
top: 0
left: 0
bottom: 0
right: handle width);
right: 0);
removeChild: handle;
addChild: handle.
content
constraintsDo: [ :c |
c horizontal fitContent.
c vertical fitContentLimitedOffset: handle height ].
c horizontal fitContentLimited.
c vertical fitContentLimited ].
handle
constraintsDo: [ :c |
c linear horizontal alignLeft.
Expand Down
10 changes: 5 additions & 5 deletions src/Brick/BrDropdownTopRightAptitude.class.st
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Class {
#name : #BrDropdownTopRightAptitude,
#superclass : #BrAptitude,
#category : 'Brick-Dropdown - Look'
#category : #'Brick-Dropdown - Look'
}

{ #category : #initialization }
Expand All @@ -23,16 +23,16 @@ BrDropdownTopRightAptitude >> initialize [
c frame vertical alignBottom ];
padding:
(BlInsets
top: handle height
left: handle width
top: 0
left: 0
bottom: 0
right: 0);
removeChild: handle;
addChild: handle.
content
constraintsDo: [ :c |
c horizontal fitContent.
c vertical fitContentLimitedOffset: handle height ].
c horizontal fitContentLimited.
c vertical fitContentLimited ].
handle
constraintsDo: [ :c |
c linear horizontal alignRight.
Expand Down

0 comments on commit ba7ff02

Please sign in to comment.