mirror of
https://github.com/atom/atom.git
synced 2026-01-24 22:38:20 -05:00
21 lines
494 B
CoffeeScript
21 lines
494 B
CoffeeScript
React = require 'react-atom-fork'
|
|
{div} = require 'reactionary-atom-fork'
|
|
|
|
module.exports =
|
|
ScrollbarCornerComponent = React.createClass
|
|
displayName: 'ScrollbarCornerComponent'
|
|
|
|
render: ->
|
|
{visible, measuringScrollbars, width, height} = @props
|
|
|
|
if measuringScrollbars
|
|
height = 25
|
|
width = 25
|
|
|
|
display = 'none' unless visible
|
|
|
|
div className: 'scrollbar-corner', style: {display, width, height},
|
|
div style:
|
|
height: height + 1
|
|
width: width + 1
|