<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Executing script after appdrag.js]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">I would need to execute code once appdrag.js is done executing.<br />
Is there any way to check when it's done to then call my own script ?</p>
<p dir="auto">A basic exemple of why I need that :<br />
Let's say I want a code to adapt margins on 3 sections to make them overlap using jQuery, my script will (might ? But will in all my tests) be executed be fore appdrag.js is done, but appdrag.js will apply the margins pagebuilder it seems, erasing my margins.</p>
<p dir="auto">The dirty hotfix I'm using right now is putting that wanted code in a setTimeout of 0 seconde, which it seems push back the execution after appdrag.js is completed.... but it's most likely a little unstable and random to do that ^^"</p>
<p dir="auto">Thank you,<br />
Best regards,</p>
]]></description><link>https://community.appdrag.com/topic/873/executing-script-after-appdrag-js</link><generator>RSS for Node</generator><lastBuildDate>Wed, 20 May 2026 19:15:56 GMT</lastBuildDate><atom:link href="https://community.appdrag.com/topic/873.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 13 Jun 2021 05:12:52 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Executing script after appdrag.js on Thu, 17 Jun 2021 06:13:44 GMT]]></title><description><![CDATA[<p dir="auto">On <code>dynamic-sized-element</code> yes it is only margin/padding and width (when you define margins on columns)</p>
<p dir="auto">Then if you want to override AppDrag sizing you can adjust the attributes<br />
<code>margin-resolution-position</code> ex: <code>margin-desktop-top</code><br />
<code>padding-resolution-position</code> ex: <code>padding-mobile-bottom</code></p>
<p dir="auto">And then call AppDrag method on the single element</p>
<pre><code>resizeMarginAndPaddingForElemJS($('yourDiv')[0]);
</code></pre>
]]></description><link>https://community.appdrag.com/post/3555</link><guid isPermaLink="true">https://community.appdrag.com/post/3555</guid><dc:creator><![CDATA[Wassim]]></dc:creator><pubDate>Thu, 17 Jun 2021 06:13:44 GMT</pubDate></item><item><title><![CDATA[Reply to Executing script after appdrag.js on Wed, 16 Jun 2021 08:07:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.appdrag.com/uid/2">@Wassim</a> thanks for the answer <img src="https://community.appdrag.com/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=lfk1vimvd74" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" title=":)" alt="🙂" /></p>
<p dir="auto">Given your solution, it means the resize/margin/padding is the ONLY thing that will be changed by appdrag.js ?</p>
<p dir="auto">The solution isn't ideal, there is an example why :<br />
If I want to overload the resize depending the size of the screen, it'll be bad if I remove your resize upfront I guess, if I want to use yours in some circumstances ?</p>
<p dir="auto">See you soon,<br />
Best regards,</p>
]]></description><link>https://community.appdrag.com/post/3551</link><guid isPermaLink="true">https://community.appdrag.com/post/3551</guid><dc:creator><![CDATA[Pierre SULPICE]]></dc:creator><pubDate>Wed, 16 Jun 2021 08:07:49 GMT</pubDate></item><item><title><![CDATA[Reply to Executing script after appdrag.js on Mon, 14 Jun 2021 06:06:36 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">When you use a jQuery source code block you can see the event once jQuery is loaded through AppDrag.</p>
<p dir="auto"><img src="/assets/uploads/files/1623650697747-b8ebf400-2af1-42d8-80ff-9eff871a85c8-image.png" alt="b8ebf400-2af1-42d8-80ff-9eff871a85c8-image.png" class="img-responsive img-markdown" /></p>
<p dir="auto">But you're right you might be overridden every time the resolution change and marginAndPadding are applied. To avoid it you can remove the class <code>dynamic-sized-element</code> and you item won't be changed by the resizing system.</p>
]]></description><link>https://community.appdrag.com/post/3543</link><guid isPermaLink="true">https://community.appdrag.com/post/3543</guid><dc:creator><![CDATA[Wassim]]></dc:creator><pubDate>Mon, 14 Jun 2021 06:06:36 GMT</pubDate></item></channel></rss>