# HG changeset patch # User hamidouk # Date 1328263664 -3600 # Node ID 645d06da3d5bd298ee09296dfcf2fcb9c4590015 # Parent aa26ddaf25568515965948a6ac2dce9b34f1af3c automatically insert 1px of margin between the video and the first widget. diff -r aa26ddaf2556 -r 645d06da3d5b src/js/init.js --- a/src/js/init.js Thu Feb 02 16:07:12 2012 +0100 +++ b/src/js/init.js Fri Feb 03 11:07:44 2012 +0100 @@ -23,6 +23,12 @@ var pop; var ret = layoutManager.createDiv(); var containerDiv = ret[0]; + var spacerDiv = ret[1]; + + /* insert one pixel of margin between the video and the first widget, using the + spacer. + */ + IriSP.jQuery("#" + spacerDiv).css("height", "1px"); switch(options.type) { /* @@ -138,8 +144,8 @@ for (index = 0; index < guiOptions.widgets.length; index++) { var widgetConfig = guiOptions.widgets[index]; var widget = IriSP.instantiateWidget(popcornInstance, serialFactory, layoutManager, widgetConfig); - ret_widgets.push(widget); - + + ret_widgets.push(widget); }; return ret_widgets;