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

View file

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