<?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 Re: Custom draggable window oustide widget area. in ArcGIS Experience Builder Questions</title>
    <link>https://community.esri.com/t5/arcgis-experience-builder-questions/custom-draggable-window-oustide-widget-area/m-p/1625721#M19428</link>
    <description>&lt;P&gt;Try building this test application:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Start with a Blank Full-Screen application.&lt;/LI&gt;&lt;LI&gt;Add your widget and make fill the entire screen.&lt;/LI&gt;&lt;LI&gt;Place some other widgets physically on top of your widget.&lt;/LI&gt;&lt;/OL&gt;</description>
    <pubDate>Mon, 23 Jun 2025 14:34:49 GMT</pubDate>
    <dc:creator>JeffreyThompson2</dc:creator>
    <dc:date>2025-06-23T14:34:49Z</dc:date>
    <item>
      <title>Custom draggable window oustide widget area.</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/custom-draggable-window-oustide-widget-area/m-p/1624832#M19345</link>
      <description>&lt;P&gt;I'm trying to make a custom draggable window to show on my map. I've created this widget:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;import React, { useState } from 'react';
import { Rnd } from 'react-rnd';
import { DownDoubleOutlined } from 'jimu-icons/outlined/directional/down-double';
import { CloseOutlined } from 'jimu-icons/outlined/editor/close';

const DraggableResizableComponent = () =&amp;gt; {
    const [showOptions, setShowOptions] = useState(false);

    return (
        &amp;lt;&amp;gt;
            &amp;lt;Rnd
                default={{
                    x: 100,
                    y: 100,
                    width: 320,
                    height: 200,
                }}
                minWidth={200}
                minHeight={120}
                maxHeight={400}
                maxWidth={300}
                dragHandleClassName="draggable-header"
                bounds="window"
                style={{
                    backgroundColor: 'rgba(128, 128, 128, 0.5)',
                    border: '1px solid #ccc',
                    borderRadius: '4px',
                }}
                enableResizing={{
                    bottomRight: true,
                    bottom: false,
                    bottomLeft: false,
                    left: false,
                    right: false,
                    top: false,
                    topLeft: false,
                    topRight: false,
                }}

            &amp;gt;
                &amp;lt;div
                className="draggable-header"
                style={{
                    display: 'flex',
                    justifyContent: 'space-between',
                    alignItems: 'center',
                    padding: '12px',
                    backgroundColor: '#000',
                    color: '#fff',
                    borderBottom: '1px solid #ccc',
                    marginTop: '5px',
                    position: 'relative',
                }}
                &amp;gt;            
                    &amp;lt;div style={{ display: 'flex', alignItems: 'center', gap: '10px', position: 'absolute', right: '10px', top: '50%', transform: 'translateY(-50%)' }}&amp;gt;

                    &amp;lt;div
                        onClick={() =&amp;gt; setShowOptions(!showOptions)}
                        style={{ cursor: 'pointer', position: 'relative', top: "-2px"}}
                    &amp;gt;
                    &amp;lt;DownDoubleOutlined size="m" color="#fff" /&amp;gt;
                    {showOptions &amp;amp;&amp;amp; (
                        &amp;lt;div
                            style={{
                                position: 'absolute',
                                top: '24px',
                                right: '0',
                                backgroundColor: '#fff',
                                color: '#000',
                                border: '1px solid #ccc',
                                borderRadius: '4px',
                                zIndex: 1000,
                                minWidth: '120px',
                            }}
                        &amp;gt;
                        &amp;lt;div
                            style={{ padding: '8px', cursor: 'pointer' }}
                            onClick={() =&amp;gt; {
                            console.log('Opção 1');
                            setShowOptions(false);
                            }}
                        &amp;gt;
                            Opção 1
                        &amp;lt;/div&amp;gt;
                        &amp;lt;div
                            style={{ padding: '8px', cursor: 'pointer' }}
                            onClick={() =&amp;gt; {
                            console.log('Opção 2');
                            setShowOptions(false);
                            }}
                        &amp;gt;
                            Opção 2
                        &amp;lt;/div&amp;gt;
                        &amp;lt;/div&amp;gt;
                    )}
                    &amp;lt;/div&amp;gt;

                    &amp;lt;CloseOutlined size="m" color="#fff" onClick={() =&amp;gt; console.log('Close Window')} /&amp;gt;
                &amp;lt;/div&amp;gt;
                &amp;lt;/div&amp;gt;
                &amp;lt;div style={{ padding: '10px' }}&amp;gt;
                    Content
                &amp;lt;/div&amp;gt;
            &amp;lt;/Rnd&amp;gt;
        &amp;lt;/&amp;gt;
    );
};

export default DraggableResizableComponent;&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;The problem is when i try to put this on the map. the Drag is being restricted by the widget area and i&amp;nbsp;want it to behave like the Widget Controller Window, that can be moved arround all the app.&lt;BR /&gt;How can i acheive this? I've tried to put in a higher hierarchy on DOM but no sucess.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jun 2025 20:47:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/custom-draggable-window-oustide-widget-area/m-p/1624832#M19345</guid>
      <dc:creator>w3nd</dc:creator>
      <dc:date>2025-06-18T20:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: Custom draggable window oustide widget area.</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/custom-draggable-window-oustide-widget-area/m-p/1625234#M19382</link>
      <description>&lt;P&gt;I guess this may be restricted by the "react-rnd" lib. Jimu has a draggable component&amp;nbsp;&lt;A href="https://developers.arcgis.com/experience-builder/storybook/?path=/docs/components-jimu-ui-index-draggable--docs," target="_blank"&gt;https://developers.arcgis.com/experience-builder/storybook/?path=/docs/components-jimu-ui-index-draggable--docs,&lt;/A&gt;&amp;nbsp;could you check whether you can use it?&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jun 2025 03:21:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/custom-draggable-window-oustide-widget-area/m-p/1625234#M19382</guid>
      <dc:creator>JunshanLiu</dc:creator>
      <dc:date>2025-06-20T03:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: Custom draggable window oustide widget area.</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/custom-draggable-window-oustide-widget-area/m-p/1625473#M19402</link>
      <description>&lt;P&gt;Thank you for reply.&lt;BR /&gt;&lt;BR /&gt;I tested and it has the same behavior, Only movable on the widget area =/&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jun 2025 20:18:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/custom-draggable-window-oustide-widget-area/m-p/1625473#M19402</guid>
      <dc:creator>w3nd</dc:creator>
      <dc:date>2025-06-20T20:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: Custom draggable window oustide widget area.</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/custom-draggable-window-oustide-widget-area/m-p/1625561#M19404</link>
      <description>&lt;P&gt;Have you tried the "&lt;SPAN&gt;bounds" property?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jun 2025 00:37:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/custom-draggable-window-oustide-widget-area/m-p/1625561#M19404</guid>
      <dc:creator>JunshanLiu</dc:creator>
      <dc:date>2025-06-23T00:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: Custom draggable window oustide widget area.</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/custom-draggable-window-oustide-widget-area/m-p/1625662#M19418</link>
      <description>&lt;P&gt;Yep. Line 23, i tested changing to app div but also, no success.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jun 2025 12:44:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/custom-draggable-window-oustide-widget-area/m-p/1625662#M19418</guid>
      <dc:creator>w3nd</dc:creator>
      <dc:date>2025-06-23T12:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: Custom draggable window oustide widget area.</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/custom-draggable-window-oustide-widget-area/m-p/1625721#M19428</link>
      <description>&lt;P&gt;Try building this test application:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Start with a Blank Full-Screen application.&lt;/LI&gt;&lt;LI&gt;Add your widget and make fill the entire screen.&lt;/LI&gt;&lt;LI&gt;Place some other widgets physically on top of your widget.&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Mon, 23 Jun 2025 14:34:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/custom-draggable-window-oustide-widget-area/m-p/1625721#M19428</guid>
      <dc:creator>JeffreyThompson2</dc:creator>
      <dc:date>2025-06-23T14:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: Custom draggable window oustide widget area.</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/custom-draggable-window-oustide-widget-area/m-p/1626066#M19438</link>
      <description>&lt;P&gt;Try adding a canCrossLayoutBoundary: true to the properties in the manifest.json.&lt;/P&gt;&lt;P&gt;This property is false by default, and it allows content inside the widget across the widget boundary.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Allen_Zhang_0-1750747115717.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/134908iD2308A926533D1E3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Allen_Zhang_0-1750747115717.png" alt="Allen_Zhang_0-1750747115717.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Allen_Zhang_1-1750747226142.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/134909i40D8174372E67276/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Allen_Zhang_1-1750747226142.png" alt="Allen_Zhang_1-1750747226142.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jun 2025 06:40:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/custom-draggable-window-oustide-widget-area/m-p/1626066#M19438</guid>
      <dc:creator>Allen_Zhang</dc:creator>
      <dc:date>2025-06-24T06:40:33Z</dc:date>
    </item>
  </channel>
</rss>

