Loading ...
Sorry, an error occurred while loading the content.

611Re: how to redraw shadow of primary popup when popup size changes and second is

Expand Messages
  • chosenone333
    Mar 1, 2006
    • 0 Attachment
      --- In overlibmws@yahoogroups.com, "Foteos Macrides" <fote@...> wrote:
      > Here's a javascript function that you can call from within a
      secondary popup to resize the shadow of the primary popup. It assumes
      that you have imported overlibmws.js, overlibmws_shadow.js and
      overlibmws_overtwo.js, and that the primary was indeed invoked with a
      shadow. It takes into account the possibility that the secondary
      popup may also have a shadow.
      > function myResizeP1shadowFromP2() {
      > if(OLp1over)over=OLp1over;
      > var bTmp=null;
      > if(OLp1bkdrop){bTmp=bkdrop;bkdrop=OLp1bkdrop;}
      > var wd=(OLns4?over.clip.width:over.offsetWidth);
      > var hgt=(OLns4?over.clip.height:over.offsetHeight);
      > if(OLns4){bkdrop.clip.width=wd;bkdrop.clip.height=hgt;}
      > else{var o=bkdrop.style;o.width=wd+'px';o.height=hgt+'px';
      > o.clip='rect(0px '+wd+'px '+hgt+'px 0px)';}
      > if(over2)over=over2;
      > if(bTmp)bkdrop=bTmp;
      > }
      > Fote
      > --
      > ----- Original Message -----
      > From: chosenone333
      > To: overlibmws@yahoogroups.com
      > Sent: Monday, February 27, 2006 3:28 AM
      > Subject: [OLmws] Re: how to redraw shadow of primary popup when
      popup size changes and second is on?
      > i can't provide url but it's easy.
      > i have primary popup with a text and some icons. where i click on
      icon secondary shows up. it contains add/delete text icons which
      modifies text in primary popup. So after clicking it the content and
      size of primary popup changes but the shadow doesn't change!
    • Show all 2 messages in this topic