mirror of
https://github.com/coteditor/CotEditor.git
synced 2024-10-26 19:10:11 +03:00
Fix flipped character in detached popover (fix #661)
This commit is contained in:
parent
cd2b2c8f66
commit
9993e3b5b1
@ -12,6 +12,11 @@ develop
|
||||
- Update build environment to Xcode 8.2 (SDK macOS 10.12.2).
|
||||
|
||||
|
||||
### Fixes
|
||||
|
||||
- Fix an issue where the zoomed characer in the characer inspector was flipped when the popover is detached.
|
||||
|
||||
|
||||
|
||||
3.1.2 (177)
|
||||
--------------------------
|
||||
|
@ -68,6 +68,7 @@ final class CharacterFieldCell: NSTextFieldCell {
|
||||
|
||||
context.saveGState()
|
||||
|
||||
context.textMatrix = CGAffineTransform(scaleX: 1.0, y: 1.0) // avoid flipping drawing when popover detatched
|
||||
context.textPosition = CGPoint(x: (cellFrame.width - bounds.width) / 2, y: -bounds.minY)
|
||||
CTLineDraw(line, context)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user