PDA

View Full Version : Regarding signature overflow


xhells21
07-25-2016, 03:00 AM
Hi Forums!

I have added a scroll-bar to signatures that exceed a 250px limit.

Though, I really like the way this works, Q #1: is it possible to hide the scrollbars when this limit has not been reached? See image below:

http://image.prntscr.com/image/47b1cb5dd65e4c4abdbe815250f37907.png


Quesion 2: The scrollbar for width always shows as well, is it possible to only show the side scroll-bar?


Code used:
.signaturecontainer {
max-height:250px;
_height: expression(this.scrollHeight > 250? "250px" : "auto" );
overflow:scroll;
}


Any help is appreciated! Thank you.

MarkFL
07-25-2016, 03:18 AM
Try the selector:

.signaturecontainer {
max-height: 250px;
overflow: auto;
}

xhells21
07-25-2016, 03:34 AM
Try the selector:

.signaturecontainer {
max-height: 250px;
overflow: auto;
}

Thank you! That did exactly what I wanted to do.