Skip to content

Commit

Permalink
Revert "Revert "Improved centering of redbox""
Browse files Browse the repository at this point in the history
This reverts commit 3c78254.

Without this, certain IMP redbox items are unreadable
  • Loading branch information
slusarz committed Apr 2, 2014
1 parent 9a61b9e commit 318e30b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
12 changes: 9 additions & 3 deletions framework/Core/js/redbox.js
Expand Up @@ -123,9 +123,15 @@ var RedBox = {
setWindowPosition: function()
{
var win = $('RB_window'),
d = win.getDimensions(),
v = document.viewport.getDimensions();
win.setStyle({ width: 'auto', height: 'auto', left: ((v.width - d.width) / 2) + 'px', top: ((v.height - d.height) / 2) + 'px' });
d = win.getDimensions();

win.setStyle({
left: '50%',
marginLeft: '-' + (d.width / 2) + 'px',
marginTop: '-' + (d.height / 2) + 'px',
position: 'absolute',
"top": '50%'
});
},

cloneWindowContents: function(id)
Expand Down
4 changes: 1 addition & 3 deletions horde/themes/default/screen.css
Expand Up @@ -1003,10 +1003,8 @@ ul.sound-list {
#RB_window {
z-index: 102;
background-color: #fff;
display: block;
text-align: left;
margin: 20px auto 0 auto;
position: absolute;
max-width: 50%;
}
#RB_window p, #RB_window ul {
margin-bottom: 3px;
Expand Down

0 comments on commit 318e30b

Please sign in to comment.