-More null checks for alternative interfaces
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2037 eee81c28-f429-11dd-99c0-75d572ba1dddmaster
parent
f85d4b9e88
commit
364b0a61ae
|
@ -3279,8 +3279,13 @@
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
workarea.scroll(function() {
|
workarea.scroll(function() {
|
||||||
|
// TODO: jQuery's scrollLeft/Top() wouldn't require a null check
|
||||||
|
if ($('#ruler_x').length != 0) {
|
||||||
$('#ruler_x')[0].scrollLeft = workarea[0].scrollLeft;
|
$('#ruler_x')[0].scrollLeft = workarea[0].scrollLeft;
|
||||||
|
}
|
||||||
|
if ($('#ruler_y').length != 0) {
|
||||||
$('#ruler_y')[0].scrollTop = workarea[0].scrollTop;
|
$('#ruler_y')[0].scrollTop = workarea[0].scrollTop;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
}());
|
}());
|
||||||
|
|
Loading…
Reference in New Issue