mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
For some reason, having flex-flow column on the pane item views container was forcing the entire view to be repainted on cursor movement and line edits. Allowing the container to flow row-wise and setting the min-height to 0 instead of min-content-height achieves the same layout effect without the huge repaint cost. Flexbox is a fragile bitch.
75 lines
1.1 KiB
Plaintext
75 lines
1.1 KiB
Plaintext
html, body {
|
|
width: 100%;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
}
|
|
|
|
#root-view {
|
|
height: 100%;
|
|
overflow: hidden;
|
|
position: relative;
|
|
|
|
#horizontal {
|
|
display: -webkit-flex;
|
|
height: 100%;
|
|
}
|
|
|
|
#vertical {
|
|
display: -webkit-flex;
|
|
-webkit-flex: 1;
|
|
-webkit-flex-flow: column;
|
|
}
|
|
}
|
|
|
|
#panes {
|
|
position: relative;
|
|
-webkit-flex: 1;
|
|
|
|
.column {
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
overflow-y: hidden;
|
|
}
|
|
|
|
.row {
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
.pane {
|
|
position: absolute;
|
|
display: -webkit-flex;
|
|
-webkit-flex-flow: column;
|
|
top: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.pane .item-views {
|
|
-webkit-flex: 1;
|
|
display: -webkit-flex;
|
|
min-height: 0;
|
|
}
|
|
|
|
.pane .item-views > * {
|
|
-webkit-flex: 1;
|
|
min-height: 0;
|
|
}
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Octicons Regular';
|
|
src: url("octicons-regular-webfont.woff") format("woff");
|
|
font-weight: normal;
|
|
font-style: normal;
|
|
}
|