show popup menu over preview window

This commit is contained in:
scossar 2015-12-28 13:51:07 -08:00
parent 6ef1537ee0
commit 0fba9443a6
3 changed files with 15 additions and 6 deletions

View File

@ -18,8 +18,7 @@ export default Ember.CollectionView.extend({
}.on('init'),
_initCss: function() {
var composerHeight = $('#reply-control').height() || 0;
this.$().css('bottom', composerHeight + "px").show();
this.$().show();
}.on('didInsertElement')
})
});

View File

@ -24,7 +24,6 @@ const ComposerView = Ember.View.extend({
movePanels(sizePx) {
$('#main-outlet').css('padding-bottom', sizePx);
$('.composer-popup').css('bottom', sizePx);
// signal the progress bar it should move!
this.appEvents.trigger("composer:resized");

View File

@ -21,6 +21,19 @@
}
.composer-popup {
position: absolute;
width: calc(50% - 55px);
max-width: 724px;
top: 16px;
bottom: 16px;
left: 50%;
// The composer goes off-center at 1550px
@media (min-width: 1550px) {
left: calc(50% - 15px);
}
overflow-y: auto;
z-index: 110;
padding: 10px;
box-shadow: 3px 3px 3px rgba(0,0,0, 0.34);
background: dark-light-diff($highlight, $secondary, 50%, -80%);
@ -52,9 +65,6 @@
opacity: 1.0;
}
padding: 10px;
width: 600px;
position: absolute;
ul.topics {
list-style: none;
@ -96,6 +106,7 @@
.composer-popup:nth-of-type(2) {
margin-left: 10px;
width: calc(50% - 65px);
}
// hide cancel upload link on IE9 (not supported)