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