<?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 vertices move offset when page is scaled with css transform in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/vertices-move-offset-when-page-is-scaled-with-css/m-p/327582#M30240</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #242729; background-color: #ffffff; border: 0px; margin: 0px 0px 1em;"&gt;I have a map on a div, and I scale up the div by 2 using css transform scale(). now my issue is that when i dragging vertices to change the shape of polygon, it is offset from my mouse point. I don't know if there is a way that i can fix it.&lt;/P&gt;&lt;P style="color: #242729; background-color: #ffffff; border: 0px; margin: 0px 0px 1em;"&gt;an example of my issue would be &lt;A href="https://developers.arcgis.com/javascript/3/samples/toolbar_edit/" rel="nofollow noreferrer" style="color: #005999; border: 0px;"&gt;https://developers.arcgis.com/javascript/3/samples/toolbar_edit/&lt;/A&gt;and add transform-origin: top left; transform:scale(2); to mainWindow div.&lt;/P&gt;&lt;P style="color: #242729; background-color: #ffffff; border: 0px; margin: 0px 0px 1em;"&gt;any advice and suggestions will be greatly appreciated&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Nov 2016 17:35:26 GMT</pubDate>
    <dc:creator>CalvinShi</dc:creator>
    <dc:date>2016-11-16T17:35:26Z</dc:date>
    <item>
      <title>vertices move offset when page is scaled with css transform</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/vertices-move-offset-when-page-is-scaled-with-css/m-p/327582#M30240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #242729; background-color: #ffffff; border: 0px; margin: 0px 0px 1em;"&gt;I have a map on a div, and I scale up the div by 2 using css transform scale(). now my issue is that when i dragging vertices to change the shape of polygon, it is offset from my mouse point. I don't know if there is a way that i can fix it.&lt;/P&gt;&lt;P style="color: #242729; background-color: #ffffff; border: 0px; margin: 0px 0px 1em;"&gt;an example of my issue would be &lt;A href="https://developers.arcgis.com/javascript/3/samples/toolbar_edit/" rel="nofollow noreferrer" style="color: #005999; border: 0px;"&gt;https://developers.arcgis.com/javascript/3/samples/toolbar_edit/&lt;/A&gt;and add transform-origin: top left; transform:scale(2); to mainWindow div.&lt;/P&gt;&lt;P style="color: #242729; background-color: #ffffff; border: 0px; margin: 0px 0px 1em;"&gt;any advice and suggestions will be greatly appreciated&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2016 17:35:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/vertices-move-offset-when-page-is-scaled-with-css/m-p/327582#M30240</guid>
      <dc:creator>CalvinShi</dc:creator>
      <dc:date>2016-11-16T17:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: vertices move offset when page is scaled with css transform</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/vertices-move-offset-when-page-is-scaled-with-css/m-p/327583#M30241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This usually happens when the map isn't resized after map is loaded. Search on GeoNet and you'll see many instances of a mouse offset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try putting this in your code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt; map&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;on&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"load"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;function&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp; map&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;resize&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 15:30:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/vertices-move-offset-when-page-is-scaled-with-css/m-p/327583#M30241</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2021-12-11T15:30:42Z</dc:date>
    </item>
  </channel>
</rss>

