Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
13c6a457
Commit
13c6a457
authored
Sep 29, 2008
by
Richard Mansfield
Browse files
Centre the owner preview
parent
7899a964
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/view/choosetemplate.php
View file @
13c6a457
...
...
@@ -76,11 +76,13 @@ function showPreview(size, data) {
var offset = 16; // Left border & padding of preview container elements (@todo: use getStyle()?)
if (size == 'small') {
var width = 400;
var xpos = (vdim.w - width - offset) / 2;
} else {
var width = vdim.w - 200;
var xpos = vpos.x+100-offset;
}
setElementDimensions(preview, {'w':width});
setElementPosition(preview, {'x':
v
pos
.x+100-offset
, 'y':vpos.y+200});
setElementPosition(preview, {'x':
x
pos, 'y':vpos.y+200});
showElement(preview);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment