Search the web
Sign In
New User? Sign Up
ydn-javascript · Yahoo! User Interface Library Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
2 Questions regarding LayoutManager   Message List  
Reply | Forward Message #33885 of 52120 |
improve iframe resizing - Re: 2 Questions regarding LayoutManager

Thanks, Dav. Note that I did read both threads (and a few others)
before posting this message (this message is actually a Re to #29963
;-) Anyway, hiding the iframe works well enough for me. I was just
wondering if there was a way to still let it display in some ways
during the resizing, like in a "frozen" state but not "active" (not
sure I am making sense here). I also tried to cover the iframe as per
#30808 but did not manage to get it to work. Plus, the iframe would
still disappear, I guess.

MC

--- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@...> wrote:
>
> Michel --
>
> This has been covered a couple of times, it's not really an issue
with Layout Manager or Resize, it's roots are in DragDrop.
>
> Here are a couple of threads with work arounds:
> http://tech.groups.yahoo.com/group/ydn-javascript/message/29963
> http://tech.groups.yahoo.com/group/ydn-javascript/message/30808
>
> Dav Glass
> dav.glass@...
> blog.davglass.com
>
>
>
>
> + Windows: n. - The most successful computer virus, ever. +
> + A computer without a Microsoft operating system is like a dog
> without bricks tied to its head +
> + A Microsoft Certified Systems Engineer is to computing what a
> McDonalds Certified Food Specialist is to fine cuisine +
>
>
>
> ----- Original Message ----
> From: Michel Corne <mcorne@...>
> To: ydn-javascript@yahoogroups.com
> Sent: Sunday, July 6, 2008 3:03:58 AM
> Subject: [ydn-javascript] improve iframe resizing - Re: 2 Questions
regarding LayoutManager
>
> Thanks to this post I managed to resize an iframe in the center
> layout, see the code below. However, is there a way to leave the image
> in the background with something not as drastic as "hidden" during the
> resizing?
>
> var hide = function() {
> var el = new YAHOO.util.Element('url');
> el.setStyle('visibility', 'hidden');
> layout.on('mouseup', function(){
> el.setStyle('visibility', 'visible');
> })
> };
>
> layout.on('startResize', hide);
>
> See http://mcworks.ovh.org/page_layout_source5.html .
>
> Thanks,
> MC
>
> --- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@> wrote:
> >
> > Henning --
> >
> > 1: This is something I will have fixed in the 2.6.0 release, but for
> now you have to do some trickery with the DOM.
> > Basically what is happening is that the document in the
> iframe is grabbing the events that Resize/DragDrop are using to
> control the element.
> > You will need to detect when the resize starts and hide the
> iframe, then when it's over show it again..
> >
> > 2: removeUnit only removes the unit from the layout, it doesn't
> destroy the unit. Try the close method on the unit like this:
> >
> > Change this line:
> > ELAINE.layout2.removeUnit( ELAINE.layout2.getUnitByPosition( 'top'
) );
> >
> > To this:
> > ELAINE.layout2.getUnitByPosition('top').close();
> >
> >
> > Does all that make sense?
> > Dav
> >
> > Dav Glass
> > dav.glass@
> > blog.davglass.com
> >
> >
> >
> >
> > + Windows: n. - The most successful computer virus, ever. +
> > + A computer without a Microsoft operating system is like a dog
> > without bricks tied to its head +
> > + A Microsoft Certified Systems Engineer is to computing what a
> > McDonalds Certified Food Specialist is to fine cuisine +
> >
> >
> >
> > ----- Original Message ----
> > From: Henning Jödden <henning.joedden@>
> > To: YUI List <ydn-javascript@yahoogroups.com>
> > Sent: Tuesday, April 29, 2008 7:57:08 AM
> > Subject: [ydn-javascript] 2 Questions regarding LayoutManager
> >
> > Hello everybody,
> >
> > 1) when I render an iframe into a "center" Unit of a Layout, then it
> > seems not possible to resize the other units "over" the iframe. So, do
> > I have to resize the iframe in the onResize handler of the layout to
> > get this working?
> >
> > 2) What exactly happens when "removeUnit()" is called? The Layout unit
> > is removed, but the container is still visible (including the "header"
> > string that I passed into the "addUnit()" config)
> > So how do I completely remove a Layout Unit and all its contents or
> > turn it invisible?
> > A "display: none;" attached to the body-container after removing the
> > unit seems to be ignored, but this would not be my favorite "hack"
> anyway...
> >
> > I made an example, where you can see what I mean, here:
> > http://phool.de/elaine/hejtest.php
> >
> > just click on the two treenodes a few times. And do not mind the
crappy
> > contents ...
> > I really "carved" this out of a larger application. ;-)
> >
> > thanks a lot in advance
> > henning
> >
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>





Sun Jul 6, 2008 4:51 pm

mcorne
Offline Offline
Send Email Send Email

Forward
Message #33885 of 52120 |
Expand Messages Author Sort by Date

Hello everybody, 1) when I render an iframe into a "center" Unit of a Layout, then it seems not possible to resize the other units "over" the iframe. So, do I ...
Henning Jödden
henningway77
Offline Send Email
Apr 29, 2008
2:57 pm

Henning -- 1: This is something I will have fixed in the 2.6.0 release, but for now you have to do some trickery with the DOM. Basically what is happening is...
Dav Glass
dav.glass
Offline Send Email
Apr 29, 2008
3:16 pm

Hi Dav, oh yes, that makes sense ;-) That hint with the iframe was exactly what I was looking for. The LayoutUnit.close() method works for the example now but...
Henning Jödden
henningway77
Offline Send Email
Apr 30, 2008
1:00 pm

Thanks to this post I managed to resize an iframe in the center layout, see the code below. However, is there a way to leave the image in the background with...
Michel Corne
mcorne
Offline Send Email
Jul 6, 2008
10:05 am

Michel -- This has been covered a couple of times, it's not really an issue with Layout Manager or Resize, it's roots are in DragDrop. Here are a couple of...
Dav Glass
dav.glass
Offline Send Email
Jul 6, 2008
4:26 pm

Thanks, Dav. Note that I did read both threads (and a few others) before posting this message (this message is actually a Re to #29963 ;-) Anyway, hiding the...
Michel Corne
mcorne
Offline Send Email
Jul 6, 2008
4:51 pm

MC -- Covering the iframe is the best way to handle it.. I should note, that I have fixed this issue in the upcoming 2.6.0 release.. Dav Dav Glass ...
Dav Glass
dav.glass
Offline Send Email
Jul 6, 2008
4:54 pm

Dav, What exactly you meant by " Covering the iframe is the best way to handle it.."?. We are using the code suggested by MC to hide it. But, as MC was...
mnrbug
Offline Send Email
Sep 23, 2009
10:43 am

Dav, One more thing I noticed just now is that [ using YUI 2.6.0 ], I amn't successfully able to resize left panel when Iframe is there in center one. The...
mnrbug
Offline Send Email
Sep 23, 2009
12:47 pm

Narendra -- A lot was fixed in the 2.6.0 release. I added the shim support to DragDrop, Resize and Layout Manager. The shim support is what makes resizing an...
Dav Glass
dav.glass
Offline Send Email
Sep 23, 2009
3:53 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help