Skip to content

Commit ab9478c

Browse files
committed
Reduce projection label footprint
Don't block interaction.
1 parent 51b70e3 commit ab9478c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

0.7.0/virtualsky.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -1624,12 +1624,12 @@ VirtualSky.prototype.selectProjection = function(proj){
16241624
.css({
16251625
'position':'absolute',
16261626
'padding':0,
1627-
'width':w+'px',
1628-
'height':h+'px',
1629-
'top':'0px',
1630-
'left':'0px',
1627+
'height':'2em',
1628+
'top':'50%',
1629+
'left':'50%',
1630+
'transform':'translate3D(-50%,-50%,0)',
16311631
'text-align':'center',
1632-
'line-height':h+'px',
1632+
'line-height':'2em',
16331633
'z-index':20,
16341634
'font-size':'1.5em',
16351635
'display':'block',

0.7.0/virtualsky.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)