# HG changeset patch # User nelopauselli # Date 1315578377 10800 # Node ID 42a1068e73c88d9bb169874f94b6ede3699def41 # Parent b9850b647a4ea39174afa4947e3d360907c698b0 corrección en subpanels para respetar (un poco mas) html según la w3c diff -r b9850b647a4e -r 42a1068e73c8 Agendas/trunk/src/Agendas.Web/Content/subpanels-0.9.css --- a/Agendas/trunk/src/Agendas.Web/Content/subpanels-0.9.css Thu Sep 08 11:22:10 2011 -0300 +++ b/Agendas/trunk/src/Agendas.Web/Content/subpanels-0.9.css Fri Sep 09 11:26:17 2011 -0300 @@ -8,6 +8,11 @@ text-align: right; } +.sp-main { + position: absolute; +} + .ajax-button { display: inline-block; -} \ No newline at end of file +} + diff -r b9850b647a4e -r 42a1068e73c8 Agendas/trunk/src/Agendas.Web/Scripts/subpanels-0.9.js --- a/Agendas/trunk/src/Agendas.Web/Scripts/subpanels-0.9.js Thu Sep 08 11:22:10 2011 -0300 +++ b/Agendas/trunk/src/Agendas.Web/Scripts/subpanels-0.9.js Fri Sep 09 11:26:17 2011 -0300 @@ -15,14 +15,23 @@ closeLink = $('').addClass('ajax-button ui-widget ui-state-default ui-corner-all').css('display', 'none').click(this.close).appendTo(panel); var closeSpan = $('').addClass('ui-icon ui-icon-minusthick').appendTo(closeLink); + var body = $('body'); + // panel principal main = $('
') .addClass('ui-widget') .addClass('ui-widget-content') .addClass('ui-corner-all') + .addClass('sp-main') .width(settings.width || '400px') .css('display', 'none') - .appendTo(panel); + .appendTo(body); + + var o = openLink.offset(); + var top = o.top + openLink.height() * 1.2; + var left = o.left; + + main.offset({ top: top, left: left }); }; this.close = function () {