fix #2078 (Texts: Right margin is wider than left margin)

This commit is contained in:
rolux 2014-02-17 09:32:25 +00:00
parent 642c5e2288
commit 671667eb5a
1 changed files with 4 additions and 4 deletions

View File

@ -387,21 +387,21 @@ pandora.ui.textHTML = function(text) {
function getHeight() {
// 24 menu + 24 toolbar + 16 statusbar + 32 title + 32 margins
// + 1px to ge trid of scrollbar
return window.innerHeight - 128 -1;
// + 1px to get rid of scrollbar
return window.innerHeight - 128 - 1;
}
function getWidth() {
return window.innerWidth
- pandora.user.ui.showSidebar * pandora.user.ui.sidebarSize - 1
- pandora.user.ui.embedSize - 1
- 32 - 16;
- 32 - Ox.UI.SCROLLBAR_SIZE;
}
function scrollTo(position) {
scrolling = true;
that[0].scrollTop = that[0].scrollHeight/100 * position;
that[0].scrollTop = that[0].scrollHeight / 100 * position;
}
function scrollToPosition() {