mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Replace getDefaultCharacterWidth with getBaseCharacterWidth
That's the language we use throughout the implementation now and a more accurate name for the concept.
This commit is contained in:
committed by
Antonio Scandurra
parent
0441625fba
commit
e423b833db
@@ -106,10 +106,19 @@ class TextEditorElement extends HTMLElement {
|
||||
return this.emitter.on('did-change-scroll-top', callback)
|
||||
}
|
||||
|
||||
// Deprecated: get the width of an `x` character displayed in this element.
|
||||
//
|
||||
// Returns a {Number} of pixels.
|
||||
getDefaultCharacterWidth () {
|
||||
return this.getComponent().getBaseCharacterWidth()
|
||||
}
|
||||
|
||||
// Extended: get the width of an `x` character displayed in this element.
|
||||
//
|
||||
// Returns a {Number} of pixels.
|
||||
getBaseCharacterWidth () {
|
||||
return this.getComponent().getBaseCharacterWidth()
|
||||
}
|
||||
getMaxScrollTop () {
|
||||
return this.getComponent().getMaxScrollTop()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user