Table "column selector" problem ... is this a bug?
I have a small problem. Below is an example.
If we place the table on a popup and then open the "column selector" and try to check/uncheck a column in this selector, the popup hides, the table disappears and the "column selector" jumps to left top corner of the screen. It is impossible to use the "column selector" if the table is on a popup.
Am 08.10.2015 um 16:52 schrieb Dietrich Streifert:
> Just a thought: Use a modal window instead of the popup.
> Am 08.10.2015 um 15:23 schrieb kirra5:
>> I have a small problem. Below is an example.
>> If we place the table on a popup and then open the "column selector"
>> and try
>> to check/uncheck a column in this selector, the popup hides, the table
>> disappears and the "column selector" jumps to left top corner of the
>> It is impossible to use the "column selector" if the table is on a
>> Is this a bug? Is there a way around it?
>> http://goo.gl/CQUSiz >>
>> Thanks a lot!
>> View this message in context:
>> http://qooxdoo.678.n2.nabble.com/Table-column-selector-problem-is-this-a-bug-tp7587661.html >> Sent from the qooxdoo mailing list archive at Nabble.com.
>> qooxdoo-devel mailing list
>> [hidden email] >> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel >
Re: Table "column selector" problem ... is this a bug?
Ah - I think that’s going to be a problem unless you override some fairly fundamental handling code; it’s been a while since I looked at it but as I recall the issue will be that the framework does not distinguish between different types of popup, IE even though from your point of view the popup of the column selector is a child popup of the table which is a child of the original popup, the framework will see both of the popups as equal and therefore when you leave one popup they are all told to close.
You’ll need another approach; you could implement your own column selector which sits next to the table in the popup; toggle it’s visibility between “excluded" and “visible” if you don’t want it to always be visible. That way the column selector is not a popup and therefore will not compete with the original popup.
Alternatively, you could try to hook events and re-show the original popup but I suspect that will be tricky, could cause flashing, and may be unpredictable in different browsers or framework versions.
Sorry for that bad playground example.
But this worked somehow yesterday.
The idea is to attach a pointerdown listener to the blocker of the modal
window and close the window in this listener. The problem of my former
hack was, that the window has not created the blocker yet. We have to
attach the listener after the 'appear' event was fired.
Here is another try. I've verified that this works on a fresh playground
in IE 11, Firefox 41.0.1 and Chrome 45