PDA

View Full Version : iframe, shim, managediframe solution



raintrain
21 Jan 2009, 6:56 AM
Hi. I use extGWT for evaluate the implementation of a Help System.

The help will be shown as Window over some intranet pages. The pages are the visible components.

In fact:

The page contains a BorderLayout
-> North: some buttons to open the help window
-> Center: iframe with some content pages

When the help window will be dragged over the iframe and the mouse moves out of the window because you drag to fast, then the drag doesn't work as expected. The same problem occurs while resizing the window.

I found the ManagedIFrame that should fix this problem and offers much more features.
I found another solution with shim option for dnd handler...

Now my question is, how can I use the managedIFrame with extGWT, or is the problem already solved in extGWT?

I'm not (yet) a GWT or JS specialist, so it would be great if someone could give me some information or the solution for my problem :)

gslender
22 Jan 2009, 2:34 AM
not really sure what you are asking - are you saying you've built a GXT application and the windows don't drag/resize correctly?

perhaps explain with more detail on what your problems are...

raintrain
22 Jan 2009, 11:44 AM
you're right. I made a GXT application with an iframe and a Window over it. The resize/move doesn't work correctly!

You can test it with: http://extjs.com/explorer/#helloworld

1. open the Window
2. show the source

The Window is now over the source

3. try to move the window (move the mouse fast, that it leaves the header)
4. try to resize the window (the rectangle doesn't follow the mouse)

I tried to overwrite drag start/stop of the Window and masked the iframe, then the problem is gone. But the mask is not the best solution (it's not transparent and the loader-area is visible). I can define my own transparent "mask" to solve the problem but i think it's better to solve the "problem" in the core components.

gslender
22 Jan 2009, 1:58 PM
this is a bug. pls post/raise a bug in http://extjs.com/forum/forumdisplay.php?f=31

raintrain
23 Jan 2009, 11:45 AM
done: http://extjs.com/forum/showthread.php?t=58126