EasyUI Forum
September 17, 2025, 12:00:21 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Uncaught TypeError: cannot read property scrollTop of null  (Read 10333 times)
gordis gmbh
Full Member
***
Posts: 103


View Profile Email
« on: October 20, 2016, 06:08:32 AM »

In Chrome & IE 11 I get this error on calling:
Code:
	$.messager.show({
title:"Information",
msg: 'Login successful',
timeout:4000,
showType:'slide'
});


Please find the complete error stack attached.

In Firefox this is running fine. Any idea what the problem could be?


In function _2aF() at jquery.easyui.min.js:3893, the property scrollTop is accessed to calculate the style bottom :

Code:

var opts=$.extend({},$.messager.defaults,{
modal:false,
shadow:false,
draggable:false,
resizable:false,
closed:true,
style:{
   left:"",top:"",
   right:0,
   zIndex:$.fn.window.defaults.zIndex++,
   bottom:-document.body.scrollTop-document.documentElement.scrollTop
},
title:"",
width:250,
height:100,
minHeight:0,
showType:"slide",
showSpeed:600,
content:_2b0.msg,
timeout:4000},_2b0);

Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: October 20, 2016, 08:01:04 PM »

Please look at this example http://www.jeasyui.com/demo/main/index.php?plugin=Messager&theme=default&dir=ltr&pitem=

It works fine on Chrome and IE11.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!