Antonio Scandurra
beb7896234
Enable subpixel font scaling
...
For certain font sizes, enabling `textRendering: optimizeLegibility` caused a
bunch of measurement-related issues. You can reproduce it by setting the following in your stylesheet:
```
atom-text-editor {
font-size: 14px;
text-rendering: optimizeLegibility;
}
```
Although I wanted to defer subpixel font scaling to a later moment, it seems
like Chrome needs to have it enabled in order to properly support the
"legibility" path for text rendering. (I guess this is part of the reason why
the Chromium team enabled it by default at some point in the past.)
2015-10-02 18:14:09 +02:00
Antonio Scandurra
33523751ea
✅ Thoroughly test LinesYardstick interactions
2015-10-01 18:34:41 +02:00
Antonio Scandurra
bca3be32e6
Avoid to call ::prepareScreenRows explicitly
2015-09-30 16:23:49 +02:00
Antonio Scandurra
5270a1da1c
Use LinesYardstick in pixelPositionForScreenPosition
2015-09-29 15:44:05 +02:00
Antonio Scandurra
b481250757
Always render the longest screen row
2015-09-29 11:41:44 +02:00
Antonio Scandurra
49577313e4
Remove yardstick to start with a clean slate
2015-09-29 10:25:54 +02:00
Antonio Scandurra
aec72e5ed6
Fix soft-wrapping spec
2015-09-28 15:43:13 +02:00
Antonio Scandurra
a870252702
🔥 Remove unused code
2015-09-26 18:04:15 +02:00
Antonio Scandurra
a96af2465f
🎨 Use ::setWidth and ::setHeight
2015-09-25 13:26:30 +02:00
Antonio Scandurra
b0d70a63c6
Prevent default event for actions that won't lead to scrolling
2015-09-25 10:55:03 +02:00
Antonio Scandurra
d65b5d1793
Revert "Maintain scroll history"
...
This reverts commit 2e6bb53303 .
2015-09-25 10:31:48 +02:00
Antonio Scandurra
2e6bb53303
Maintain scroll history
2015-09-24 16:25:58 +02:00
Antonio Scandurra
99e77dc09d
Port leftover specs from DisplayBuffer
2015-09-24 11:41:02 +02:00
Antonio Scandurra
91ef57ed29
Merge branch 'master' into as-display-buffer-logical-coordinates
...
# Conflicts:
# src/display-buffer.coffee
2015-09-23 18:46:16 +02:00
Antonio Scandurra
36b0aa0126
🔥
2015-09-23 18:45:32 +02:00
Antonio Scandurra
87c7a0ae30
💚 Fix some TextEditorComponent specs
2015-09-23 16:25:50 +02:00
Antonio Scandurra
60fdd3793f
Stop reporting scroll positions to the model
2015-09-23 15:34:44 +02:00
Antonio Scandurra
5d42dd557a
Finish porting TextEditor specs
2015-09-23 15:34:43 +02:00
Antonio Scandurra
4136c195c9
Port .scrollToCursorPosition() specs
2015-09-23 15:34:42 +02:00
Antonio Scandurra
0ccb34de42
wip
2015-09-23 15:34:42 +02:00
Antonio Scandurra
25735b2ee1
Port autoscroll when selecting buffer ranges
2015-09-23 15:34:42 +02:00
Antonio Scandurra
7f3160eba6
Port .selectLinesContainingCursors() specs
2015-09-23 15:34:42 +02:00
Antonio Scandurra
57a006d19b
Start porting scroll-related specs
2015-09-23 15:34:41 +02:00
Antonio Scandurra
37fb253bfd
Prevent default for mousewheel event on mini editors
...
(ref. 0346e58 )
2015-09-23 15:34:27 +02:00
Antonio Scandurra
ddd7aacd9d
💚 Fix TextEditorComponent specs
2015-09-23 15:34:22 +02:00
Nathan Sobo
36ba0bded3
Don’t assert about unsubscription due to API support going away
2015-09-22 10:37:07 -06:00
Nathan Sobo
c7ecad5576
Remove EditorView
2015-09-18 20:48:45 -06:00
Antonio Scandurra
12b926c82a
🔥
2015-09-17 17:15:51 +02:00
Antonio Scandurra
3575928cce
Move continuous reflow setting into TextEditorElement
2015-09-17 17:14:00 +02:00
Antonio Scandurra
91bb8f518d
Merge branch 'master' into as-continuous-reflow
2015-09-17 16:58:37 +02:00
Antonio Scandurra
ad83a03440
Merge branch 'master' into as-recycle-nodes
...
# Conflicts:
# src/line-numbers-tile-component.coffee
# src/lines-tile-component.coffee
2015-09-15 11:50:54 +02:00
Antonio Scandurra
9af7795a7e
Avoid skipping null bytes
...
Now that we build DOM nodes via `document.createElement`, there's no need to
skip null byte characters (nor to avoid to pair them) because the browser will
keep them in the document (unlike `innerHTML`).
2015-09-14 11:45:29 +02:00
Antonio Scandurra
51050bde19
Remove z-index specs
2015-09-08 19:37:41 +02:00
Antonio Scandurra
23cb2740cd
🐎 Remove class from tiles
2015-09-08 16:44:44 +02:00
Antonio Scandurra
786cd82e26
💚
2015-09-08 16:28:19 +02:00
Antonio Scandurra
e2590f78d1
📝 Fix wording on specs
2015-09-07 14:09:44 +02:00
Antonio Scandurra
c865e6123f
💚
2015-09-07 13:49:54 +02:00
Antonio Scandurra
9eed6c7834
Add "Continuous Reflow" mode
2015-09-07 13:25:13 +02:00
Nathan Sobo
5be64cdc89
Merge pull request #8627 from atom/ns-terminate-drag-on-any-text-change
...
Terminate drag on any buffer change
2015-09-01 14:22:29 -06:00
Nathan Sobo
f3def3a7ed
Terminate drag on any buffer change
...
Not just text insertion.
2015-09-01 12:58:34 -06:00
Nathan Sobo
f1276f59de
Autoscroll when mouse gets close to the edge of the editor scroll view
...
Previously, we required the cursor to exceed the bounds of the editor,
but that makes it impossible to scroll when the window is maximized.
2015-09-01 10:43:45 -06:00
Nathan Sobo
012f8e40fc
Add specs for mouse-based autoscroll; fix a couple existing specs
2015-08-28 12:56:59 -06:00
Antonio Scandurra
340fe7e534
📝 Fix wording on specs
...
Thanks, @maxbrunsfeld! 🎆
2015-08-28 09:45:55 +02:00
Antonio Scandurra
fa28aef2b5
Put a decreasing z-index on line numbers
2015-08-27 12:47:43 +02:00
Antonio Scandurra
9ea62673d2
Put a decreasing z-index on line-numbers tiles
2015-08-27 12:15:55 +02:00
Antonio Scandurra
ca285d3fe3
💚 Correct typo in container's height specs
2015-08-27 12:12:45 +02:00
Nathan Sobo
6bfa228060
Merge pull request #8520 from atom/as-lines-height
...
Change lines container height based on `TextEditorElement` dimensions
2015-08-26 17:21:52 -06:00
Jacek Kopecky
3a81414155
🔥 redundant old tests
2015-08-26 21:52:01 +01:00
Jacek Kopecky
e4b189c6c0
add tests
2015-08-26 21:04:09 +01:00
Antonio Scandurra
b5c0f5ac0b
Change lines container height based on boundingClientRect
2015-08-26 16:21:51 +02:00