Skip to content

Commit

Permalink
Merge pull request sakaiproject#244 from clhedrick/LSNBLDR-477
Browse files Browse the repository at this point in the history
LSNBLDR-477; fix position of dialogs and size of region
  • Loading branch information
clhedrick committed Mar 2, 2015
2 parents ebd6602 + c8d560c commit 3dc93fc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lessonbuilder/tool/src/webapp/js/show-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,20 @@ function msg(s) {
}

function checksize(oe) {
// jquery wraps the content in another div. we need that div, except dropdowndiv is our own
if (!oe.hasClass("dropDownDiv")) {
oe = oe.parent();
var position = $("#outer").position();
oe.css('left', position.left + 'px');
oe.css('top', position.top + 'px');
}
var nsize = oe.height() + oe.parent().position().top;
var bsize = $("#outer").height();
if ((nsize) > bsize) {
$("#outer").height(nsize);
setMainFrameHeight(window.name);
}

}

function checkgroups(elt, groups) {
Expand Down

0 comments on commit 3dc93fc

Please sign in to comment.