Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] IE11 can not display box-shadow correctly #248

Open
extralam opened this issue May 9, 2019 · 0 comments
Open

[Bug] IE11 can not display box-shadow correctly #248

extralam opened this issue May 9, 2019 · 0 comments

Comments

@extralam
Copy link

extralam commented May 9, 2019

in js Line 345 _renderDataSourceDay

we use
for(var i = 0; i < events.length; i++)
instead of
for(var i in events)

other references topic on IE11
https://stackoverflow.com/questions/44390300/for-in-loop-in-ie11

following code updated

case 'border':
					var weight = 0;
					if(events.length == 1) {
						weight = 4;
					}
					else if(events.length <= 3) {
						weight = 2;
					}
					else {
						elt.parent().css('box-shadow', 'inset 0 -4px 0 0 black');
					}
					if(weight > 0)
					{
						var boxShadow = '';
						for(var i = 0; i < events.length; i++){
							if(boxShadow != '') {
								boxShadow += ",";
							}
							boxShadow += 'inset 0 -' + (parseInt(i) + 1) * weight + 'px 0 0 ' + events[i].color;
						}
						elt.parent().css('box-shadow', boxShadow);
					}
					break;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant