Skip to content

Commit

Permalink
fixed default size & color of textMorph
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivenjs committed Jun 30, 2024
1 parent 9501907 commit d31b8fe
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions src/SqueakWhiteboard-Core/WBTextbox.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,27 @@ Class {
}

{
#category : #'as yet unclassified',
#'squeak_changestamp' : 'JK 6/30/2024 15:52'
#category : #'instance creation',
#'squeak_changestamp' : 'is 7/1/2024 00:29'
}
WBTextbox class >> defaultSize [

^ 15@35
]

{
#category : #'morph functionalities',
#'squeak_changestamp' : 'is 7/1/2024 00:22'
}
WBTextbox >> color: aColor [
"The textbox should always be transparent"

self morph color: Color transparent
]

{
#category : #initialization,
#'squeak_changestamp' : 'is 7/1/2024 00:27'
}
WBTextbox >> initialize [

Expand All @@ -18,10 +37,11 @@ WBTextbox >> initialize [
vResizing: #shrinkWrap;
onChanged: [self resize];
position: self position.
self textField textMorph justified
]

{
#category : #'as yet unclassified',
#category : #resize,
#'squeak_changestamp' : 'JK 6/30/2024 15:12'
}
WBTextbox >> resize [
Expand Down

0 comments on commit d31b8fe

Please sign in to comment.