Author |
Message |
25/05/2018 12:04:13
|
levy
Power User
Joined: 12/03/2008 16:38:22
Messages: 308
Location: XpertCenter
Offline
|
Hi Björn
Lets open a YESNOPopup in the FIXGRID method "onRowExecute()".
With Swing, the popup is opened quite near of the mouse pointer that clicked the row. But in RISC, the popup is opened at the very bottom left of the grid.
We must explicitly invoke "ynp.getModalPopup().setLeftTopReferenceBottom()" to get the same behaviour as in Swing.
Could you please check?
Regards, Daniel
|
|
|
28/05/2018 09:04:06
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5555
Offline
|
Hi David,
I am pretty sure that the event that triggers the popup is a click or a double click into the grid. If not - please tell me.
Regards, Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
28/05/2018 12:11:05
|
levy
Power User
Joined: 12/03/2008 16:38:22
Messages: 308
Location: XpertCenter
Offline
|
Hi Björn,
Yes, indeed. As I already wrote, the popup is invoked in the method "onRowExecute()".
Regards, Daniel
|
|
|
28/05/2018 12:18:34
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5555
Offline
|
...great. This is fixed now - thanks for your message!
Regards, Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
05/06/2018 10:07:11
|
levy
Power User
Joined: 12/03/2008 16:38:22
Messages: 308
Location: XpertCenter
Offline
|
Hi Björn
Further fix is required.
The workaround (explicit setLeftTopReferenceBottom() in onRowExecute()) is still necessary for ARRAYGRIDItem.
Even for FIXGRIDItem, the workaround is necessary when invoking onRowPopupMenuItem().
Furthermore, in case all row items are selected in a FIXGRID, the workaround in onRowPopupMenuItem() is useless.
Regards, Daniel
|
|
|
06/06/2018 08:30:48
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5555
Offline
|
...will check, thanks! - Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
10/06/2018 17:15:20
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5555
Offline
|
Hi Daniel,
@The workaround (explicit setLeftTopReferenceBottom() in onRowExecute()) is still necessary for ARRAYGRIDItem.
We cannot reproduce this.
@Even for FIXGRIDItem, the workaround is necessary when invoking onRowPopupMenuItem().
Is fixed for 20180611
@Furthermore, in case all row items are selected in a FIXGRID, the workaround in onRowPopupMenuItem() is useless.
?? Do not exactly know what you mean...
Thanks + reagrds, Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
12/06/2018 13:46:59
|
levy
Power User
Joined: 12/03/2008 16:38:22
Messages: 308
Location: XpertCenter
Offline
|
Hi Björn
I have verified the fix in case of onRowPopupMenuItem() with version 20180611.
It's all ok now for that.
However, the case of onRowExecute() is not quite fixed.
The very first time I click on a row (triggering the event), the popup is not positioned as expected but on the very botom left of the screen.
Only after that, if I close the popup and click on the already selected row again, the popup is displayed near the row as expected.
This is the behaviour that I already observed with a previous CC version.
So the fix you announced in the previous post of 05/28/2018 did not work for me.
Could you please check?
Regards, Daniel
|
|
|
22/06/2018 15:34:23
|
levy
Power User
Joined: 12/03/2008 16:38:22
Messages: 308
Location: XpertCenter
Offline
|
Hi Björn,
Just a reminder... Could you check and fix this one?
Regards, Daniel
|
|
|
25/10/2018 13:32:38
|
levy
Power User
Joined: 12/03/2008 16:38:22
Messages: 308
Location: XpertCenter
Offline
|
Hi Björn
I have checked with CC version 20181007.
The bug is still not fixed.
Unfortunately, I cannot provide a JSP snippet, since t:arrayfixgrid ist dynamic and onRowExecute() is on server side.
But I have attached screen shots hoping they are useful to reproduce and fix.
Regards, Daniel
|
Filename |
attributes.png |
Download
|
Description |
Filled attributes for t:arraygrid |
Filesize |
10 Kbytes
|
Downloaded: |
523 time(s) |
Filename |
Case2.PNG |
Download
|
Description |
Case 2 (NOK): Directly click (with left mouse button) an unselected row
--> Now the popup appears unfortunately on the very bottom left of the grid. The workaround is to invoke explicitly setLeftTopReferenceBottom() |
Filesize |
15 Kbytes
|
Downloaded: |
502 time(s) |
Filename |
Case1.PNG |
Download
|
Description |
Case 1 (OK): First select (with right mouse button), then click (with left mouse button)
--> The popup appears just below the selected row as expected. |
Filesize |
7 Kbytes
|
Downloaded: |
495 time(s) |
|
|
|
04/07/2019 13:11:25
|
levy
Power User
Joined: 12/03/2008 16:38:22
Messages: 308
Location: XpertCenter
Offline
|
Hi Björn
The problem still persists in CC 20190702.
I remembered this issue while reading change log for 20190617 "Improvement - Opening a dialog “over” a certain component" about "setLeftTopReference”-methods. I hoped the problem could be "solved by itself" in the meantime, but this is not the case. May be you can take a look at the problem now you have the "setLeftTopReference”-methods fresh in your mind?
Kind regards, Daniel
|
|
|
|