Skip to content

Commit

Permalink
Merge pull request #1436 from Rinzwind/buttonbaradapter-display-scale…
Browse files Browse the repository at this point in the history
…-factor

Make methods in SpMorphicButtonBarAdapter take the display scale factor into account
  • Loading branch information
jecisc authored Aug 10, 2023
2 parents 30a040e + 751b685 commit 5b93e87
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Spec2-Adapters-Morphic/SpMorphicButtonBarAdapter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ Class {
{ #category : #accessing }
SpMorphicButtonBarAdapter class >> defaultHeight [

^ 30
^ 30 scaledByDisplayScaleFactor
]

{ #category : #accessing }
SpMorphicButtonBarAdapter class >> defaultItemSeparation [

^ 3@0
^ (3@0) scaledByDisplayScaleFactor
]

{ #category : #factory }
Expand All @@ -25,7 +25,7 @@ SpMorphicButtonBarAdapter >> addModelTo: panelMorph [
self model items do: [ :each |
self model focusOrder add: each.
panelMorph addMorph: (each build
width: 100;
width: 100 scaledByDisplayScaleFactor;
hResizing: #rigid;
yourself) ]
]
Expand Down

0 comments on commit 5b93e87

Please sign in to comment.