Fix pageUp/Down tests by using a real element

This commit is contained in:
Nathan Sobo
2017-04-19 15:52:03 -06:00
committed by Antonio Scandurra
parent f2070ef880
commit 24e03ee4e6
2 changed files with 14 additions and 2 deletions

View File

@@ -103,6 +103,10 @@ class TextEditorElement extends HTMLElement {
return this.emitter.on('did-detach', callback)
}
measureDimensions () {
this.getComponent().measureDimensions()
}
setWidth (width) {
this.style.width = this.getComponent().getGutterContainerWidth() + width + 'px'
}