PhraseEditorUI // Fine-tweaks.
This commit is contained in:
parent
5b11ffec44
commit
6c2a3ee8b4
|
@ -246,12 +246,14 @@ public struct VwrPhraseEditorUI: View {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
TextEditorEX(text: $txtContent)
|
GroupBox {
|
||||||
.disabled(selInputMode == .imeModeNULL || isLoading)
|
TextEditorEX(text: $txtContent)
|
||||||
.frame(minWidth: 320, minHeight: 240)
|
.disabled(selInputMode == .imeModeNULL || isLoading)
|
||||||
.onChange(of: fileChangeIndicator.id) { _ in
|
.frame(minWidth: 320, minHeight: 240)
|
||||||
if Self.autoReloadExternalModifications { update() }
|
.onChange(of: fileChangeIndicator.id) { _ in
|
||||||
}
|
if Self.autoReloadExternalModifications { update() }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
VStack(spacing: 4) {
|
VStack(spacing: 4) {
|
||||||
if selUserDataType != .theAssociates {
|
if selUserDataType != .theAssociates {
|
||||||
|
|
|
@ -148,7 +148,10 @@ public struct TextEditorEX: NSViewRepresentable {
|
||||||
|
|
||||||
scrollview.borderType = .noBorder
|
scrollview.borderType = .noBorder
|
||||||
scrollview.hasVerticalScroller = true
|
scrollview.hasVerticalScroller = true
|
||||||
|
scrollview.hasHorizontalScroller = true
|
||||||
scrollview.documentView = textView
|
scrollview.documentView = textView
|
||||||
|
scrollview.scrollerStyle = .legacy
|
||||||
|
scrollview.autohidesScrollers = true
|
||||||
|
|
||||||
return scrollview
|
return scrollview
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue