mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Have inner image-container consume entire area
This commit is contained in:
@@ -10,7 +10,8 @@ class ImageView extends ScrollView
|
||||
|
||||
@content: ->
|
||||
@div class: 'image-view', tabindex: -1, =>
|
||||
@img outlet: 'image'
|
||||
@div class: 'image-container', =>
|
||||
@img outlet: 'image'
|
||||
|
||||
initialize: (imageEditSession) ->
|
||||
super
|
||||
|
||||
@@ -1,9 +1,14 @@
|
||||
.image-view {
|
||||
height:100%;
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
overflow: auto;
|
||||
position: relative;
|
||||
display: -webkit-flex;
|
||||
|
||||
.image-container {
|
||||
height:100%;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
img {
|
||||
box-sizing: content-box;
|
||||
|
||||
Reference in New Issue
Block a user