Fix editor scrolling horizontally
This commit is contained in:
parent
527e590619
commit
dec7a6bd33
@ -501,6 +501,7 @@ DQ
|
|||||||
</constraints>
|
</constraints>
|
||||||
</view>
|
</view>
|
||||||
<connections>
|
<connections>
|
||||||
|
<outlet property="writerScrollContainer" destination="jcY-KK-WQg" id="y9X-kJ-JMT"/>
|
||||||
<outlet property="writerText" destination="HxZ-78-tID" id="bub-iR-kN5"/>
|
<outlet property="writerText" destination="HxZ-78-tID" id="bub-iR-kN5"/>
|
||||||
</connections>
|
</connections>
|
||||||
</viewController>
|
</viewController>
|
||||||
|
@ -11,6 +11,7 @@ import Cocoa
|
|||||||
class ViewController: NSViewController, NSTextViewDelegate, NSUserNotificationCenterDelegate {
|
class ViewController: NSViewController, NSTextViewDelegate, NSUserNotificationCenterDelegate {
|
||||||
|
|
||||||
@IBOutlet var writerText: NSTextView!
|
@IBOutlet var writerText: NSTextView!
|
||||||
|
@IBOutlet weak var writerScrollContainer: NSScrollView!
|
||||||
|
|
||||||
var isNight = false
|
var isNight = false
|
||||||
|
|
||||||
@ -51,7 +52,7 @@ class ViewController: NSViewController, NSTextViewDelegate, NSUserNotificationCe
|
|||||||
|
|
||||||
func configureWindow() {
|
func configureWindow() {
|
||||||
// Fit textview to window size
|
// Fit textview to window size
|
||||||
writerText.setFrameSize(NSSize(width: self.view.window!.frame.width, height: self.view.window!.frame.height))
|
writerText.setFrameSize(NSSize(width: self.writerScrollContainer.frame.width - 20, height: self.writerScrollContainer.frame.height))
|
||||||
}
|
}
|
||||||
|
|
||||||
override var representedObject: Any? {
|
override var representedObject: Any? {
|
||||||
|
Loading…
Reference in New Issue
Block a user