[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
RISC: setLeftTopReferenceBottom() must explicitly be invoked  XML
Forum Index -> Development
Author Message
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
[WWW]
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5519
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
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
[WWW]
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5519
Offline

...great. This is fixed now - thanks for your message!
Regards, Björn

Björn Müller, CaptainCasa GmbH
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
[WWW]
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5519
Offline

...will check, thanks! - Björn

Björn Müller, CaptainCasa GmbH
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5519
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
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
[WWW]
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
[WWW]
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
[Thumb - attributes.png]
 Filename attributes.png [Disk] Download
 Description Filled attributes for t:arraygrid
 Filesize 10 Kbytes
 Downloaded:  485 time(s)

 Filename Case2.PNG [Disk] 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:  462 time(s)

 Filename Case1.PNG [Disk] 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:  459 time(s)

[WWW]
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
[WWW]
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team