List Info

Thread: Extend YAHOO.widget.Panel




Extend YAHOO.widget.Panel
country flaguser name
Germany
2007-10-04 03:29:38

Hi Folks,

The last few days I've tried to extend the YAHOO.widget.Panel with a
feature that provides an additional configuration, so called
viewportelement.

I want to invoke the constructor like:

var myExtPanel = new MYNAMESPACE.more.ExtPanel("myPanel",
{visible:true,draggable:true,modal:true,constraintoviewport:true,viewportelement:"viewportElementId"});

The default behavior of that widget should constrain the panel within
its movable area. The drag area should be exactly within the
viewportelement. The current panel widget uses the client viewport and
I just want to narrow this behavior. Same thing counts also for the
mask (modality).

It works on FF and IE6 but not on IE7 (fires events continously). Are
there any implementations yet or could someone provide snippets how to
carry this out?

Best Regards,
-- Roman

__._,_.___
Recent Activity
Visit Your Group
Yahoo! Groups

Join a yoga group

and take the stress

out of your life.

Re: Extend YAHOO.widget.Panel
country flaguser name
United States
2008-03-30 17:09:52

Hi Roman,

I am having the same issues, have you found a solution to this?

Thanks,
Yoong Shin

--- In ydn-javascript%40yahoogroups.com">ydn-javascriptyahoogroups.com, Roman Raedle <Roman.Raedle...>
wrote:
&gt;
> Hi Folks,
&gt;
> The last few days I've tried to extend the YAHOO.widget.Panel with a
> feature that provides an additional configuration, so called
> viewportelement.
&gt;
> I want to invoke the constructor like:
&gt;
> var myExtPanel = new MYNAMESPACE.more.ExtPanel(&quot;myPanel&quot;,
>
{visible:true,draggable:true,modal:true,constraintoviewport:true,viewportelement:&quot;viewportElementId"});
>
> The default behavior of that widget should constrain the panel within
> its movable area. The drag area should be exactly within the
> viewportelement. The current panel widget uses the client viewport and
> I just want to narrow this behavior. Same thing counts also for the
> mask (modality).
>
> It works on FF and IE6 but not on IE7 (fires events continously). Are
> there any implementations yet or could someone provide snippets how to
> carry this out?
>;
> Best Regards,
> -- Roman
&gt;

__._,_.___
.

__,_._,___
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )