Skip to content

Commit 7d336eb

Browse files
committed
this should fix #744 and other problems around
1 parent 6bfa8c4 commit 7d336eb

4 files changed

Lines changed: 31 additions & 5 deletions

File tree

src/PharoLauncher-Spec2/PhLConfirmDialog.class.st

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ PhLConfirmDialog >> initializePresenters [
3636
{ #category : 'initialization' }
3737
PhLConfirmDialog >> initializeWindow: aWindowPresenter [
3838

39-
super initializeWindow: aWindowPresenter.
40-
"aWindowPresenter withoutDecorations"
39+
aWindowPresenter
40+
title: self title;
41+
initialExtent: self class defaultExtent
4142
]
4243

4344
{ #category : 'api' }

src/PharoLauncher-Spec2/PhLInformDialog.class.st

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,14 @@ PhLInformDialog >> initializePresenters [
2424
beWrap
2525
]
2626

27+
{ #category : 'initialization' }
28+
PhLInformDialog >> initializeWindow: aWindowPresenter [
29+
30+
aWindowPresenter
31+
title: self title;
32+
initialExtent: self class defaultExtent
33+
]
34+
2735
{ #category : 'initialization' }
2836
PhLInformDialog >> initializeWindowExtent: aDialogWindowPresenter [
2937
]

src/PharoLauncher-Spec2/PhLRequestDialog.class.st

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,11 @@ PhLRequestDialog >> initializePresenters [
3939

4040
{ #category : 'initialization' }
4141
PhLRequestDialog >> initializeWindow: aWindowPresenter [
42-
43-
super initializeWindow: aWindowPresenter.
44-
"aWindowPresenter withoutDecorations"
42+
43+
aWindowPresenter
44+
title: self title;
45+
initialExtent: self class defaultExtent;
46+
whenOpenedDo: [ textInput takeKeyboardFocus; selectAll ]
4547
]
4648

4749
{ #category : 'initialization' }

src/PharoLauncher-Spec2/PhLSelectDialog.class.st

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ Class {
66
#tag : 'View-Dialogs'
77
}
88

9+
{ #category : 'accessing' }
10+
PhLSelectDialog class >> defaultExtent [
11+
12+
^ 650@300
13+
]
14+
915
{ #category : 'layout' }
1016
PhLSelectDialog >> defaultLayout [
1117

@@ -30,6 +36,15 @@ PhLSelectDialog >> initializePresenters [
3036
beWrap
3137
]
3238

39+
{ #category : 'initialization' }
40+
PhLSelectDialog >> initializeWindow: aWindowPresenter [
41+
42+
aWindowPresenter
43+
title: self title;
44+
initialExtent: self class defaultExtent;
45+
whenOpenedDo: [ list takeKeyboardFocus ]
46+
]
47+
3348
{ #category : 'initialization' }
3449
PhLSelectDialog >> initializeWindowExtent: aDialogWindowPresenter [
3550
]

0 commit comments

Comments
 (0)