afterlogic / webmail-lite

AfterLogic WebMail Lite PHP. Fast and easy-to-use webmail front-end for your existing IMAP mail server, Plesk or cPanel.
https://afterlogic.org/webmail-lite
GNU Affero General Public License v3.0
443 stars 120 forks source link

Bug in admin style.css #60

Closed abdelrahmanahmed closed 7 years ago

abdelrahmanahmed commented 7 years ago

I don't know is it even possible to add js into css files? i saw this line in admin stylesheet (adminpanel/static/styles/style.css)

body {
    height:expression((document.getElementsByTagName('body')[0].offsetHeight < document.getElementsByTagName('html')[0].offsetHeight) ? '100%' : '');

}
afterlogic-support commented 7 years ago

I'm not sure what bug you're referring to.

abdelrahmanahmed commented 7 years ago

this line in your stylesheet height:expression((document.getElementsByTagName('body')[0].offsetHeight < document.getElementsByTagName('html')[0].offsetHeight) ? '100%' : '');

its useless and not working , if yous see developer tool you will find that its not rendered.

abdelrahmanahmed commented 7 years ago

image here is a screenshot

afterlogic-support commented 7 years ago

It's intended for older IE browsers. It does nothing in new browsers. If you don't care about old IE, you can delete this. But this is certainly not a bug and was added intentionally.