natros / gwt-cal

Automatically exported from code.google.com/p/gwt-cal
0 stars 2 forks source link

Calendar focus issues when inside Popup #55

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Display a calendar
2.select an event
3.Click Delete button on keyboard

What is the expected output? What do you see instead? I expect it to call 
my delete handlers and delete teh appointment. it does none of the above.

What version of the product are you using? On what operating system?
0.9 on FF3.6/Chrome on Win7. Works on IE8.

Please provide any additional information below.
DeleteEvent is not fired at all. Apointment is not removed, and handlers 
are not notified. In ie8 also the appointments are blocky with no round 
edges -- maybe that's why it works.

It could also help you to know that i am displaying the calendar on a 
DialogBox. All other handlers (select, update, open) are working fine.

Original issue reported on code.google.com by doom777 on 26 May 2010 at 7:29

GoogleCodeExporter commented 8 years ago
I just tested on Ubuntu & Windows XP with Firefox 3.6 and Chrome, and on Mac 
with 
Safari and it worked fine. I don't have Windows7 so i'm not able to test ...

Does your keyboard combine the Backspace & Delete key into one key? On my 
wife's Mac 
laptop the keys are combined and as a result the key down event handler 
registers the 
keystroke as the 'backspace' key instead of 'delete' key. That is the only 
explanation 
I can think of...

Regarding rounded corners ... IE8 doesn't have rounded corners because iE8 
doesn't 
support the css3 rounded corner property.

Original comment by Brad.Ryd...@gmail.com on 27 May 2010 at 12:15

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
i tried it on chrome and firefox in kubuntu, but same problem occured. I'll try 
to
fix it so that I could provide better info on how to reproduce it and fix it.

P.S. it really could be dialog box. also it could be that i am using it in 
UiBinder

Original comment by doom777 on 27 May 2010 at 4:53

GoogleCodeExporter commented 8 years ago
Ok, debugging has revealed that it's definitely DialogBox related. Putting a 
calendar
in a dialog box somehow makes it lose focus, and it seems impossible to give it 
focus
back. No similar issue is reported on IE.

Original comment by doom777 on 27 May 2010 at 9:21

GoogleCodeExporter commented 8 years ago

Original comment by Brad.Ryd...@gmail.com on 1 Jun 2010 at 9:58

GoogleCodeExporter commented 8 years ago
Hi guys,

I have the same problem. I've tested my code in Firefox 3.6, Chrome and Safari, 
with the same result (also tested in Windows XP, OSX 10.6 and Ubuntu 10.4)

In my case the GWT-Cal widget is in a SimplePanel created through an UiBinder.

I'll try to simplify my code as much as possible to see if I can find where is 
the problem

Cheers.

Original comment by ctasada on 7 Jul 2010 at 3:20

GoogleCodeExporter commented 8 years ago
I've added traces (System.out.pritln) to different parts of the GWT-Cal and 
recompiled. All the traces fired in mouse related events are working fine, but 
the trace that should be fired in InteractiveWidget is never fired.

I checked in the 3 focusPanel.addKeyxxxx methods and none of them is executed. 
That makes me think that the focusPanel is never firing the events.

I also tried to remove the Event.KEYEVENTS from the sinkEvents, since we're not 
listening to them in the onBrowserEvent, but the result was the same.

I'll keep attacking this problem tomorrow, but right now I don't have any ideas 
:(

PS: I removed my gwt-cal instance from the UiBinder and didn't make any 
difference. I'm sure I'm missing some obvious problem, since the gwt-demo works 
perfectly :(

Original comment by ctasada on 7 Jul 2010 at 3:55

GoogleCodeExporter commented 8 years ago
Hello,

I might not have followed everything but I think that beiing into a dialogBox 
(or another popup) by default disallow you to obtain focus on an other popup.

I had a similar problem and add this line to get the dialogBox working:
        dialogBox.setModal(false);

Original comment by pier...@pvittet.com on 21 Jul 2010 at 10:29

GoogleCodeExporter commented 8 years ago
Same problem here. Win 7 x64, FF6.0.2. However, comment 8 did fix the problem. 
Setting the popup to be non-modal worked. However, what I really need IS a 
modal popup, so would be nice if this could be handled somehow.

Original comment by thomas.d...@gmail.com on 5 Oct 2011 at 7:46

GoogleCodeExporter commented 8 years ago
Just another thing: having ANY modal dialog box open kills the focus behavior. 
Be sure to hide any modal popup before showing the calendar popup. I cam across 
this when I opened a non-modal dialog containing the calendar with a button on 
a modal dialog.

Original comment by thomas.d...@gmail.com on 6 Oct 2011 at 7:58