mirror of
https://github.com/atom/atom.git
synced 2026-02-09 14:15:24 -05:00
Do not allow root view to set a font-size less than 1
This commit is contained in:
@@ -155,6 +155,7 @@ class RootView extends View
|
||||
super
|
||||
|
||||
setFontSize: (newFontSize) ->
|
||||
newFontSize = Math.max(1, newFontSize)
|
||||
[oldFontSize, @fontSize] = [@fontSize, newFontSize]
|
||||
@trigger 'font-size-change' if oldFontSize != newFontSize
|
||||
|
||||
|
||||
Reference in New Issue
Block a user