|
@@ -63,8 +63,7 @@ class KMComboBox: NSComboBox {
|
|
|
class KMComboBoxCell: NSComboBoxCell {
|
|
|
private func adjustedFrameToVerticallyCenterText(_ frame: NSRect) -> NSRect {
|
|
|
let offset = floor((frame.size.height / 2 - (font!.ascender + font!.descender)))
|
|
|
- let rect = NSRect(x: 8, y: 0, width: frame.size.width, height: frame.size.height)
|
|
|
- return NSInsetRect(rect, 0.0, offset)
|
|
|
+ return NSInsetRect(frame, 0.0, offset)
|
|
|
}
|
|
|
|
|
|
override func edit(withFrame aRect: NSRect, in controlView: NSView, editor textObj: NSText, delegate anObject: Any?, event: NSEvent?) {
|