Resolved. Solution to involve my (yet to be incorporated) patch to Chaos tools dialog
See: http://drupal.org/node/1294478
(function($) {
Drupal.behaviors.fubar = {
attach: function (context) {
$('.horizontal-tabs-panes').once(function(){
Drupal.horizontalTab.prototype.focus = function() {
/**
* Displays the tab's content pane.
*/
if ($(this.fieldset).parents().find('div.ctools-modal-content').length >0){
if ($.isFunction(Drupal.CTools.Modal.resize))
Drupal.CTools.Modal.resize($(this.fieldset).width(),$(this.fieldset).height());
}
this.fieldset
.siblings('fieldset.horizontal-tabs-pane')
.each(function () {
var tab = $(this).data('horizontalTab');
tab.fieldset.hide();
tab.item.removeClass('selected');
})
.end()
.show()
.siblings(':hidden.horizontal-tabs-active-tab')
.val(this.fieldset.attr('id'));
this.item.addClass('selected');
// Mark the active tab for screen readers.
$('#active-horizontal-tab').remove();
this.link.append('<span id="active-horizontal-tab" class="element-invisible">' + Drupal.t('(active tab)') + '</span>');
};
});
}
}
})(jQuery);
Naturally we will be changing the name from fubar
Comments
Comment #0.0
southweb commentedImprove language
Comment #0.1
southweb commentedUpdate
Comment #1
southweb commentedUpdated to reflect the fact we need to calculate all the widths and heights for each fieldgroup before the first dialog is displayed.
Note, rename from fubar, and place anywhere as long as you are using the Field Groups module and have field groups with Horizontal Tabs specified.
Comment #2
Stalski commentedGreat, I guess we will push this as soon as the patch is activated in the CTools project. #1294478: Modal dialog dynamic resizing
Comment #3
Stalski commentedComment #3.0
Stalski commentedresolved
Comment #4
nils.destoop commented