This code puts a WORKING button in the ACCORDION
Code:
$('#acs-button-list .acs-panel-btn-clear').clone().appendTo("#" + strNewAccordionDiv).removeAttr("id")
.addClass("acs-tracker-buttons")
.addClass("ui-state-highlight");
getting the button from this pool of hidden elements I have on the page...
Code:
<div id="acs-button-list">
<button type="button" title="Add to Folder" class="acs-panel-btn-add ui-button ui-widget ui-state-highlight ui-corner-all ui-button-icon-primary" role="button" aria-disabled="false" id="acs-button-list-add"><span class="ui-button-icon-primary ui-icon ui-icon-plus"></span></button>
<button type="button" title="Open Folder Detail Panel" class="acs-panel-btn-edit ui-button ui-widget ui-state-highlight ui-corner-all ui-button-icon-primary" role="button" aria-disabled="false" id="acs-button-list-edit"><span class="ui-button-icon-primary ui-icon ui-icon-folder-open"></span></button>
<button type="button" title="Edit the Folder Summary Grid" class="acs-panel-btn-open ui-button ui-widget ui-state-highlight ui-corner-all ui-button-icon-primary" role="button" aria-disabled="false" id="acs-button-list-open"><span class="ui-button-icon-primary ui-icon ui-icon-pencil"></span></button>
<button type="button" title="Clear Lookup Text" class="acs-panel-btn-clear ui-button ui-widget ui-state-highlight ui-corner-all ui-button-icon-primary" role="button" aria-disabled="false" id="acs-button-list-clear"><span class="ui-button-icon-primary ui-icon ui-icon-cancel"></span></button>
<button type="button" title="Open Reader Panel" class="acs-panel-btn-reader ui-button ui-widget ui-state-highlight ui-corner-all ui-button-icon-primary" role="button" aria-disabled="false" id="acs-button-list-reader"><span class="ui-button-icon-primary ui-icon ui-icon-script"></span></button>
This code creates the NON WORKING buttons that don't work in IE in production - but do WORK in IE on my development machine...
Code:
$("#acs-button-list-clear").clone().prependTo("#" + strPanelHeading).removeAttr("id").attr("id", strPanelHeading + "clear");
$("#" + strPanelHeading + "clear").addClass("acs-reader-clear").attr("title", "Clear Reader Selections");
for (var i = objGrid.boottab.length - 1; i >= 0; i--) {
$("#acs-button-list-" + objGrid.boottab[i]).clone().prependTo("#" + strPanelHeading).removeAttr("id").attr("id", strPanelHeading + objGrid.boottab[i]);
}
It took me two hours to even find an IE debugger (DebugBar) - which I had to install on the webserver of my customer to even see the problem - I do all my development in FF and then check if IE looks ok on my laptop - which it does for these buttons...
So I found DebugBar and the image I posted in the OP (just download it and open it - it should be readable once a local jpg...) are the COMPUTED LAYOUT of the button...
Does that mean I could create a sample page of just that COMPUTED STYLING and see it both work and NOT work in IE???
What styling feature would make a button collapse in IE - or am I missing a reference to a CSS style that trumps these ones or gives defaults to this one???
Is it that the parent objects are different between these two elements???
I have done a lot of painful INLINE type stuff to make the buttons appear next to each other horizontally in the past...