Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/css/structure/modules/infragistics.ui.shared.css
Original file line number Diff line number Diff line change
Expand Up @@ -471,4 +471,13 @@ visibility:hidden;
.ui-hidden-phone {
display: none !important
}
}
/* Scroll measurement helper - used by $.ig.util.getScrollWidth/getScrollHeight */
.ui-ig-scroll-measure {
width: 100px;
height: 100px;
position: absolute;
top: -10000px;
left: -10000px;
overflow: scroll;
Comment thread
ChronosSF marked this conversation as resolved.
}
15 changes: 12 additions & 3 deletions src/js/infragistics.loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,10 @@ $.ig.dependencies = [
scripts: [ "$path$/modules/infragistics.ui.scroll.js" ],
locale: [ "$localePath$/infragistics.ui.scroll-$locale$.js" ],
group: $.ig.loaderClass.locale.miscGroup,
css: [ "$path$/structure/modules/infragistics.ui.scroll.css" ],
css: [
"$path$/structure/modules/infragistics.ui.shared.css",
"$path$/structure/modules/infragistics.ui.scroll.css"
],
Comment on lines 245 to +251
description: $.ig.loaderClass.locale.descriptions.scrollDescription
},
{
Expand Down Expand Up @@ -1727,7 +1730,10 @@ $.ig.dependencies = [
dependency: [ { name: "igWidget" } ],
scripts: [ "$path$/modules/infragistics.ui.layoutmanager.js" ],
group: $.ig.loaderClass.locale.layoutGroup,
css: [ "$path$/structure/modules/infragistics.ui.layout.css" ],
css: [
"$path$/structure/modules/infragistics.ui.shared.css",
"$path$/structure/modules/infragistics.ui.layout.css"
],
description: $.ig.loaderClass.locale.descriptions.layoutManagerDescription
},
{
Expand Down Expand Up @@ -1789,7 +1795,10 @@ $.ig.dependencies = [
scripts: [ "$path$/modules/infragistics.ui.splitter.js" ],
locale: [ "$localePath$/infragistics.ui.splitter-$locale$.js" ],
group: $.ig.loaderClass.locale.layoutGroup,
css: [ "$path$/structure/modules/infragistics.ui.splitter.css" ],
css: [
"$path$/structure/modules/infragistics.ui.shared.css",
"$path$/structure/modules/infragistics.ui.splitter.css"
],
description: $.ig.loaderClass.locale.descriptions.splitterDescription
},
{
Expand Down
6 changes: 2 additions & 4 deletions src/js/modules/infragistics.util.jquery.js
Original file line number Diff line number Diff line change
Expand Up @@ -1112,8 +1112,7 @@

// Returns the width of the vertical scrollbar
$.ig.util.getScrollWidth = function () {
var el = $('<div style="width: 100px; height: 100px; position: absolute; ' +
'top: -10000px; left: -10000px; overflow: scroll"></div>')
var el = $("<div></div>").addClass("ui-ig-scroll-measure")
.appendTo($(document.body)), scrollWidth;
Comment on lines 1114 to 1116
scrollWidth = el[ 0 ].offsetWidth - el[ 0 ].clientWidth;
Comment thread
ChronosSF marked this conversation as resolved.
el.remove();
Expand All @@ -1122,8 +1121,7 @@

// Returns the height of the horizontal scrollbar
$.ig.util.getScrollHeight = function () {
var el = $('<div style="width: 100px; height: 100px; position: absolute; ' +
'top: -10000px; left: -10000px; overflow: scroll"></div>')
var el = $("<div></div>").addClass("ui-ig-scroll-measure")
.appendTo($(document.body)), scrollHeight;
scrollHeight = el[ 0 ].offsetHeight - el[ 0 ].clientHeight;
el.remove();
Expand Down
Loading