fixed composer window having 0 width; recent replies looks gud again

v1.18.x
psychobunny 12 years ago
parent 24e81c873c
commit 4373037071

@ -150,7 +150,7 @@
li { li {
clear: both; clear: both;
line-height: 16px; line-height: 17px;
margin-bottom: 1em; margin-bottom: 1em;
&:last-child { &:last-child {
@ -166,8 +166,8 @@
padding-left:5px; padding-left:5px;
padding-top: 2px; padding-top: 2px;
overflow: hidden; overflow: hidden;
height: 32px; height: 35px;
margin-bottom: 0.1em; margin-bottom: 1px;
} }
span { span {
font-size: 12px; font-size: 12px;

@ -448,11 +448,14 @@ a:hover, .btn-link:hover, .btn-link:active, .btn-link:focus {
} }
} }
/* START: post-window needs to go in its own plugin area */
.post-window { .post-window {
position: fixed; position: fixed;
display: none; display: none;
height: 350px; height: 350px;
visibility: hidden; visibility: hidden;
width: 100%;
> div { > div {
position: absolute; position: absolute;
@ -550,6 +553,8 @@ a:hover, .btn-link:hover, .btn-link:active, .btn-link:focus {
} }
} }
} }
/* END: post-window needs to go in its own plugin area */
#mobile-menu { #mobile-menu {

@ -109,8 +109,8 @@ define(['taskbar'], function(taskbar) {
var taskbar = document.getElementById('taskbar'); var taskbar = document.getElementById('taskbar');
composer.postContainer = document.createElement('div'); composer.postContainer = document.createElement('div');
composer.postContainer.className = 'post-window row-fluid'; composer.postContainer.className = 'post-window row';
composer.postContainer.innerHTML = '<div class="span5">' + composer.postContainer.innerHTML = '<div class="col-md-5">' +
'<input type="text" tabIndex="1" placeholder="Enter your topic title here..." />' + '<input type="text" tabIndex="1" placeholder="Enter your topic title here..." />' +
'<div class="btn-toolbar formatting-bar">' + '<div class="btn-toolbar formatting-bar">' +
'<div class="btn-group">' + '<div class="btn-group">' +
@ -125,7 +125,7 @@ define(['taskbar'], function(taskbar) {
'<div class="imagedrop"><div>Drag and Drop Images Here</div></div>'+ '<div class="imagedrop"><div>Drag and Drop Images Here</div></div>'+
'<div class="btn-toolbar action-bar">' + '<div class="btn-toolbar action-bar">' +
'<div class="btn-group" style="float: right; margin-right: -8px">' + '<div class="btn-group" style="float: right; margin-right: -8px">' +
'<button data-action="minimize" class="btn hidden-phone" tabIndex="4"><i class="icon-download-alt"></i> Minimize</button>' + '<button data-action="minimize" class="btn hidden-xs" tabIndex="4"><i class="icon-download-alt"></i> Minimize</button>' +
'<button class="btn" data-action="discard" tabIndex="5"><i class="icon-remove"></i> Discard</button>' + '<button class="btn" data-action="discard" tabIndex="5"><i class="icon-remove"></i> Discard</button>' +
'<button data-action="post" class="btn" tabIndex="3"><i class="icon-ok"></i> Submit</button>' + '<button data-action="post" class="btn" tabIndex="3"><i class="icon-ok"></i> Submit</button>' +
'</div>' + '</div>' +
@ -312,7 +312,7 @@ define(['taskbar'], function(taskbar) {
} }
composer.reposition = function(post_uuid) { composer.reposition = function(post_uuid) {
var postWindowEl = composer.postContainer.querySelector('.span5'), var postWindowEl = composer.postContainer.querySelector('.col-md-5'),
taskbarBtn = document.querySelector('#taskbar [data-uuid="' + post_uuid + '"]'), taskbarBtn = document.querySelector('#taskbar [data-uuid="' + post_uuid + '"]'),
btnRect = taskbarBtn.getBoundingClientRect(), btnRect = taskbarBtn.getBoundingClientRect(),
taskbarRect = document.getElementById('taskbar').getBoundingClientRect(), taskbarRect = document.getElementById('taskbar').getBoundingClientRect(),

Loading…
Cancel
Save