Just to note, that if I comment out the bit of code setting the
localStorage parameters...the popup returns to the correct
position....allowing the script again...the popup open in the top left
of the page again..........why does the script change the behaviour of
the popup???

Skye

On 13 abr, 17:20, skye riquelme <riquelme.s...@gmail.com> wrote:
> Hi All
>
> Am trying to understand the positioning of popup windows.
>
> I have a header where I use icons as the main navegation labels (using
> Erics SetIconPlugin). When clicked, some of these icons open a popup,
> which often has another sub-set of icons for the user to select). And
> this popup sometimes appears under, to the right of the appropriate
> icon... great !!...and sometimes open up in the top left corner of the
> page!!!!! Not so nice !!!!
>
> An example....... one popup has four icons which opens other
> popups........and it all works  fine and the popup boxes are nicely
> placed;.....the code (called by from the HeaderPanel - a section
> within the HeaderPanel tiddler) in the first popup panel is -
> !!refs
> {{ref{<<showPopup tiddler:PDF##biblioteca label:Bibliografia width:
> 700px popupClass:sticky>><<setIcon "books.png" "" notext>>}}}
> {{ref{<<showPopup tiddler:AddRef label:AddRefs width:300px
> popupClass:sticky>><<setIcon "world_link.png" "" notext>>}}}
> {{ref{<<showPopup tiddler:Upload_PDF label:Uploading width:300px
> popupClass:sticky>><<setIcon "upload.png" "" notext>>}}}
> {{ref{<<showPopup tiddler:PDF##tags label:Lista width:100px
> popupClass:sticky>><<setIcon "tags.png" "" notext>>}}}
>
> Now, I decided to add a piece of script to this section, so that when
> clicked the icon simply sets a localStorage variable, which is used to
> control the display in the right side panel...and continues to display
> the icons created by the code above........the code is simply -
> <script>localStorage.rightsidebar="refs";localStorage.rightparameters="limitesCrescimento";refreshDisplay();</
> script>...
>
> when I add this code to the above......the popup now opens in the top
> left corner of the page......
>
> Why does a did of code that only sets a localStorage variable change
> the positioning of the popup panel????
>
> And how to stop this happening???
>
> Thanks in Advance
> Skye
>
> (PS I have Erics CoreTweaks installed - including tweak 1151  - using
> TW 2.6.1 under FF11.0)

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.

Reply via email to