mirror of
https://github.com/atom/atom.git
synced 2026-02-06 04:34:55 -05:00
Make LinesComponent a normal object instead of a React component
Also, remove ability to disable hardware acceleration since there’s no longer a need for it and it complicated this conversion.
This commit is contained in:
@@ -7,7 +7,7 @@ ScrollbarComponent = React.createClass
|
||||
displayName: 'ScrollbarComponent'
|
||||
|
||||
render: ->
|
||||
{presenter, orientation, className, useHardwareAcceleration} = @props
|
||||
{presenter, orientation, className} = @props
|
||||
|
||||
switch orientation
|
||||
when 'vertical'
|
||||
@@ -18,7 +18,7 @@ ScrollbarComponent = React.createClass
|
||||
style = {}
|
||||
|
||||
style.display = 'none' unless @newState.visible
|
||||
style.transform = 'translateZ(0)' if useHardwareAcceleration # See atom/atom#3559
|
||||
style.transform = 'translateZ(0)' # See atom/atom#3559
|
||||
switch orientation
|
||||
when 'vertical'
|
||||
style.width = @newState.width
|
||||
|
||||
Reference in New Issue
Block a user