Skip to content

Commit

Permalink
Revert "Improved centering of redbox"
Browse files Browse the repository at this point in the history
This completely broke rendering of all forms in Kronolith.

This reverts commit 585ff22.
  • Loading branch information
yunosh committed Apr 2, 2014
1 parent 5d54dc8 commit 3c78254
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
12 changes: 3 additions & 9 deletions framework/Core/js/redbox.js
Expand Up @@ -123,15 +123,9 @@ var RedBox = {
setWindowPosition: function()
{
var win = $('RB_window'),
d = win.getDimensions();

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

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

0 comments on commit 3c78254

Please sign in to comment.