Skip to content

Commit

Permalink
dc: make sure we scale layoutInset to hidpi
Browse files Browse the repository at this point in the history
  • Loading branch information
tom95 committed Nov 30, 2023
1 parent 2d6c155 commit 66af4c2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/DomainCode-Parser/DCBlock.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -1306,6 +1306,7 @@ DCBlock class >> tlaplusSourceFile [
^ {
[:x | x language = SBTlaplus].
[:x | x type = #module].
[:x | false].
[:x |
x
ensureReplacement: DCTlaplusModule
Expand Down Expand Up @@ -2416,10 +2417,10 @@ DCBlock >> layoutCommands [
{ #category : #'as yet unclassified' }
DCBlock >> layoutInset [
false ifTrue: [^ 5].
self isBlockBody ifTrue: [^ 4 @ 3].
false ifTrue: [^ 5 sbScaled].
self isBlockBody ifTrue: [^ (4 @ 3) sbScaled].
^ 2 @ (self submorphCount > 3 ifTrue: [2] ifFalse: [0])
^ (2 @ (self submorphCount > 3 ifTrue: [2] ifFalse: [0])) sbScaled
]
{ #category : #'as yet unclassified' }
Expand Down

0 comments on commit 66af4c2

Please sign in to comment.