<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Misalignment of attribute inspector custom buttons? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/misalignment-of-attribute-inspector-custom-buttons/m-p/462650#M42766</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've got an issue with the placing of a new custom button next to the Delete button on the attribute inspector and could use a hand in figuring out how to have it line up correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the example at &lt;A href="http://www.mymanatee.org/arcgis_js_api/sdk/jssamples/ed_attribute_inspector.html" title="http://www.mymanatee.org/arcgis_js_api/sdk/jssamples/ed_attribute_inspector.html"&gt;Using the attribute inspector | ArcGIS API for JavaScript&lt;/A&gt; to modify the existing Attribute Inspector in the Editor found in the Web Application Template. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code looks like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var relatedRecordsButton = new Button({ label: "Get Related", "class": "saveButton" },domConstruct.create("div"));&lt;/P&gt;&lt;P&gt;relatedRecordsButton.on("click", getRelated);&lt;/P&gt;&lt;P&gt;domConstruct.place(relatedRecordsButton.domNode,&amp;nbsp; this.editor.attributeInspector.deleteBtn.domNode, "after");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result looks like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture3.JPG" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/132412_Capture3.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the new custom button overlapping the delete button.&amp;nbsp; Does anyone have any suggestions to solve this?&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Oct 2015 17:34:35 GMT</pubDate>
    <dc:creator>TimDine</dc:creator>
    <dc:date>2015-10-20T17:34:35Z</dc:date>
    <item>
      <title>Misalignment of attribute inspector custom buttons?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/misalignment-of-attribute-inspector-custom-buttons/m-p/462650#M42766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've got an issue with the placing of a new custom button next to the Delete button on the attribute inspector and could use a hand in figuring out how to have it line up correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the example at &lt;A href="http://www.mymanatee.org/arcgis_js_api/sdk/jssamples/ed_attribute_inspector.html" title="http://www.mymanatee.org/arcgis_js_api/sdk/jssamples/ed_attribute_inspector.html"&gt;Using the attribute inspector | ArcGIS API for JavaScript&lt;/A&gt; to modify the existing Attribute Inspector in the Editor found in the Web Application Template. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code looks like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var relatedRecordsButton = new Button({ label: "Get Related", "class": "saveButton" },domConstruct.create("div"));&lt;/P&gt;&lt;P&gt;relatedRecordsButton.on("click", getRelated);&lt;/P&gt;&lt;P&gt;domConstruct.place(relatedRecordsButton.domNode,&amp;nbsp; this.editor.attributeInspector.deleteBtn.domNode, "after");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result looks like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture3.JPG" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/132412_Capture3.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the new custom button overlapping the delete button.&amp;nbsp; Does anyone have any suggestions to solve this?&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2015 17:34:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/misalignment-of-attribute-inspector-custom-buttons/m-p/462650#M42766</guid>
      <dc:creator>TimDine</dc:creator>
      <dc:date>2015-10-20T17:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: Misalignment of attribute inspector custom buttons?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/misalignment-of-attribute-inspector-custom-buttons/m-p/462651#M42767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In Chrome, I'd open the Developer Tools (F12) and select the button element. Once it's selected, play around with the CSS display property for that element. Maybe something like "display:table-cell" may get it to display inline with the other button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you figure out the "right" CSS display property, be sure to add that CSS property to the button object as you create it in your JS code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2015 17:41:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/misalignment-of-attribute-inspector-custom-buttons/m-p/462651#M42767</guid>
      <dc:creator>SteveCole</dc:creator>
      <dc:date>2015-10-20T17:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: Misalignment of attribute inspector custom buttons?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/misalignment-of-attribute-inspector-custom-buttons/m-p/462652#M42768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Got it.&amp;nbsp; Had to modify the properties of the delete button rather than my button using the method you suggested.&amp;nbsp; Looks like this now:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="132502" alt="Capture4.JPG" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/132502_Capture4.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Uses:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;this.editor.attributeInspector._hideNavButtons = 0;
&amp;nbsp; 
var relatedRecordsButton = new Button({ label: "Get Related", "class": "saveButton" },domConstruct.create("div"));
relatedRecordsButton.on("click", getRelated);
domConstruct.place(relatedRecordsButton.domNode,&amp;nbsp; this.editor.attributeInspector.deleteBtn.domNode, "after");

var theDeleteBtn = this.editor.attributeInspector.deleteBtn;
domStyle.set(theDeleteBtn.domNode, "float", "none");
domStyle.set(theDeleteBtn.domNode, "width", "auto");
domStyle.set(theDeleteBtn.domNode, "height", "auto");&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 20:33:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/misalignment-of-attribute-inspector-custom-buttons/m-p/462652#M42768</guid>
      <dc:creator>TimDine</dc:creator>
      <dc:date>2021-12-11T20:33:21Z</dc:date>
    </item>
  </channel>
</rss>

