Commit bd677cbc authored by Martyn Smith's avatar Martyn Smith Committed by Martyn Smith
Browse files

Added width default to current width

parent 73d18f9d
......@@ -261,6 +261,10 @@ function toggleChecked(c) {
}
function expandDownToViewport(element, width) {
if (typeof(width) == 'undefined') {
width = getElementDimensions(element).w;
}
var viewport = getViewportDimensions();
var position = getElementPosition(element);
var newheight = new Dimensions(width, viewport.h - position.y - 2);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment