Skip to content

Commit

Permalink
Default preferredExtent should not create an instance.
Browse files Browse the repository at this point in the history
The default extent is the largest, if the instance wants smaller or different it should handle it
  • Loading branch information
tesonep committed Jan 19, 2025
1 parent 09ba9b8 commit 631e064
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions Iceberg-TipUI/IceTipEditProjectDialogPresenter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,7 @@ Class {
{ #category : 'accessing' }
IceTipEditProjectDialogPresenter class >> defaultPreferredExtent [

^ self new hasToShowWarning
ifTrue: [ (475 @ 525) scaledByDisplayScaleFactor ]
ifFalse: [
(475
@ (200 + (self inputTextHeight * 3) + self buttonHeight + 75))
scaledByDisplayScaleFactor "Tree" "Yes, a magic number" ]
^ (475 @ 525) scaledByDisplayScaleFactor
]

{ #category : 'actions' }
Expand Down

0 comments on commit 631e064

Please sign in to comment.