Nathan Sobo fdccc0bcc2 Measure DOM dimensions before rendering elements that depend on them
This commit breaks the initial render of the editor component into two
stages.

The first stage just renders the shell of the editor so the height,
width, line height, and default character width can be measured. Nothing
that depends on these values is rendered on the first render pass.

Once the editor component is mounted, all these values are measured and
we force another update, which fills in the lines, line numbers,
selections, etc.

We also refrain from assigning an explicit height and width on the
model if these values aren't explicitly styled in the DOM, and just
assume the editor will stretch to accommodate its contents.
2014-04-22 17:10:21 -06:00
2014-04-02 08:58:19 -07:00
2014-04-17 18:32:22 -07:00
2014-04-21 09:32:53 -07:00
2014-04-02 08:57:55 -07:00
2014-03-04 10:19:20 -08:00
2013-08-14 14:05:35 -07:00
2014-03-25 15:40:43 +08:00
2014-04-02 14:03:31 -07:00
2014-04-22 17:10:21 -06:00
2014-02-24 17:38:49 -08:00

Atom — The hackable editor

Atom

Check out our guides and API documentation.

Installing

Download the latest Atom release.

Atom will automatically update when a new release is available.

Building

Follow the instructions in the build docs.

Description
No description provided
Readme 447 MiB
Languages
JavaScript 88.3%
Less 8.7%
CoffeeScript 2.8%
Shell 0.1%