I have an app with two widgets that auto launch when the app is opened. The problem is that these two widgets cover the zoom, home, locate icons and the widget icons on the top right at start up. I've tried editing the Panel.js to moving them based on this thread but mine seems different so i am not sure what lines to edit and with what? I tried adding line position.left += 50; to line 29 but the panels are still over the icons.
I am working with the Launchpad Theme.
Thanks.
Here is what mine looks like.
_setPositionStyle<SPAN class="operator token">:</SPAN> <SPAN class="token function">function</SPAN><SPAN class="punctuation token">(</SPAN>pos<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">{</SPAN>
var style<SPAN class="punctuation token">;</SPAN>
<SPAN class="keyword token">if</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="keyword token">this</SPAN><SPAN class="punctuation token">.</SPAN>position<SPAN class="punctuation token">.</SPAN>zIndex<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">{</SPAN>
pos<SPAN class="punctuation token">.</SPAN>zIndex <SPAN class="operator token">=</SPAN> <SPAN class="keyword token">this</SPAN><SPAN class="punctuation token">.</SPAN>position<SPAN class="punctuation token">.</SPAN>zIndex<SPAN class="punctuation token">;</SPAN>
<SPAN class="punctuation token">}</SPAN>
<SPAN class="keyword token">this</SPAN><SPAN class="punctuation token">.</SPAN>position<SPAN class="punctuation token">.</SPAN>left <SPAN class="operator token">=</SPAN> pos<SPAN class="punctuation token">.</SPAN>left<SPAN class="punctuation token">;</SPAN>
<SPAN class="keyword token">this</SPAN><SPAN class="punctuation token">.</SPAN>position<SPAN class="punctuation token">.</SPAN>top <SPAN class="operator token">=</SPAN> pos<SPAN class="punctuation token">.</SPAN>top<SPAN class="punctuation token">;</SPAN>
<SPAN class="keyword token">this</SPAN><SPAN class="punctuation token">.</SPAN>position<SPAN class="punctuation token">.</SPAN>width <SPAN class="operator token">=</SPAN> pos<SPAN class="punctuation token">.</SPAN>width<SPAN class="punctuation token">;</SPAN>
<SPAN class="keyword token">this</SPAN><SPAN class="punctuation token">.</SPAN>position<SPAN class="punctuation token">.</SPAN>height <SPAN class="operator token">=</SPAN> pos<SPAN class="punctuation token">.</SPAN>height<SPAN class="punctuation token">;</SPAN>
style <SPAN class="operator token">=</SPAN> utils<SPAN class="punctuation token">.</SPAN><SPAN class="token function">getPositionStyle</SPAN><SPAN class="punctuation token">(</SPAN>pos<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN>
lang<SPAN class="punctuation token">.</SPAN><SPAN class="token function">mixin</SPAN><SPAN class="punctuation token">(</SPAN>style<SPAN class="punctuation token">,</SPAN> pos<SPAN class="punctuation token">.</SPAN>borderRadiusStyle<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN>
domStyle<SPAN class="punctuation token">.</SPAN><SPAN class="token function">set</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="keyword token">this</SPAN><SPAN class="punctuation token">.</SPAN>domNode<SPAN class="punctuation token">,</SPAN> style<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN>
<SPAN class="punctuation token">}</SPAN><SPAN class="punctuation token">,</SPAN>
onWindowResize<SPAN class="operator token">:</SPAN> <SPAN class="token function">function</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">{</SPAN>
var position <SPAN class="operator token">=</SPAN> <SPAN class="punctuation token">{</SPAN><SPAN class="punctuation token">}</SPAN><SPAN class="punctuation token">,</SPAN> box<SPAN class="punctuation token">;</SPAN>
<SPAN class="keyword token">if</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="keyword token">this</SPAN><SPAN class="punctuation token">.</SPAN>windowState <SPAN class="operator token">==</SPAN><SPAN class="operator token">=</SPAN> <SPAN class="string token">'minimized'</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">{</SPAN>
<SPAN class="keyword token">return</SPAN><SPAN class="punctuation token">;</SPAN> <SPAN class="comment token">//do nothing if panel is minimized.</SPAN>
<SPAN class="punctuation token">}</SPAN>
<SPAN class="keyword token">if</SPAN><SPAN class="punctuation token">(</SPAN>window<SPAN class="punctuation token">.</SPAN>appInfo<SPAN class="punctuation token">.</SPAN>isRunInMobile<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">{</SPAN>
box <SPAN class="operator token">=</SPAN> <SPAN class="keyword token">this</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="token function">_getLayoutBox</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN>
<SPAN class="keyword token">if</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="keyword token">this</SPAN><SPAN class="punctuation token">.</SPAN>windowState <SPAN class="operator token">==</SPAN><SPAN class="operator token">=</SPAN> <SPAN class="string token">'maximized'</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">{</SPAN>
position<SPAN class="punctuation token">.</SPAN>top <SPAN class="operator token">=</SPAN> <SPAN class="number token">0</SPAN><SPAN class="punctuation token">;</SPAN>
position<SPAN class="punctuation token">.</SPAN>left <SPAN class="operator token">+=</SPAN> <SPAN class="number token">50</SPAN><SPAN class="punctuation token">;</SPAN>
position<SPAN class="punctuation token">.</SPAN>height <SPAN class="operator token">=</SPAN> box<SPAN class="punctuation token">.</SPAN>h<SPAN class="punctuation token">;</SPAN>
<SPAN class="punctuation token">}</SPAN><SPAN class="keyword token">else</SPAN><SPAN class="punctuation token">{</SPAN>
position<SPAN class="punctuation token">.</SPAN>top <SPAN class="operator token">=</SPAN> box<SPAN class="punctuation token">.</SPAN>h <SPAN class="operator token">/</SPAN> <SPAN class="number token">2</SPAN><SPAN class="punctuation token">;</SPAN>
position<SPAN class="punctuation token">.</SPAN>height <SPAN class="operator token">=</SPAN> box<SPAN class="punctuation token">.</SPAN>h <SPAN class="operator token">/</SPAN> <SPAN class="number token">2</SPAN><SPAN class="punctuation token">;</SPAN>
<SPAN class="punctuation token">}</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>