Comments (6)
iFrames steal mouse input such as mouse drag events from reaching wcDocker, without the drag events, if you try to move a panel and dock it somewhere over the iFrame it causes problems. The solution was to cover up the iFrame with some element that blocks the iFrame from stealing mouse focus.
However, the wcIFrameFocus element should always be set to display: none
except in very specific situations where I need to have mouse input. I see that yours seems to be stuck on display: block
mode. Does clicking in that iFrame not cause the focus element to hide itself again?
Unfortunately, I've tried a number of actions but I can't seem to reproduce this, could you list more specifically what actions you took to get this?
from wcdocker.
Ah, I get why the wcIFrameFocus is required.
To reproduce the issue: In your demo site
- close all panes except tutorial panel and control panel
- add another tutorial panel
- make it floating and then dock it on the right (or any other) side of the existing panel.
I tried the steps and reproduced the bug.
I tried to debug the code and __updateFrame()
is reporting the panel as unfocused, focus
is false
.
ref iframe.js
line# 260. And yes you are correct, clicking the IFrame does not hide the focus panel.
from wcdocker.
Thank you for the detailed instructions, I am able to reproduce this bug now.
I will have some time later tonight to look into it, I'll keep you updated!
from wcdocker.
@Lochemage
Welcome. Sounds good to me, thanks.
from wcdocker.
Try it out now, I believe I have made it better than before!
from wcdocker.
@Lochemage
It's working as expected. Thanks
from wcdocker.
Related Issues (20)
- does wcDocker have a destroy-function? HOT 8
- Can wcDocker "just" restore the positions/dims of panels without re-instantiation? HOT 5
- Using 'Panel Creation Elements' breaks creation of panels via context menu
- Docker panel resize HOT 1
- Docker is in infinite loop HOT 2
- Cannot move the stacked Iframe panel into the browser tab. HOT 1
- mobile device events
- Embedded wcDocker instance or otherwise constraining panels to one layout HOT 3
- Can I use wcDocker with angular2? HOT 2
- Provide dynamic options via addPanel HOT 3
- Improved forked version available - bug fixes and performance
- PopOut Browser
- restoring a layout refreshes iframes HOT 1
- Scroll position resets after resize panel HOT 1
- Using moveable(false) causes Browser window hang HOT 5
- wcDocker Frame do not load URL when we use jQuery v.3.3.1
- Any light Theme?
- How do I prevent a panel from resizing?
- Is it possible to localize the context menu?
- Localization
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wcdocker.