B4J Question [ABMaterial] - page.ShowModalSheetAbsolute()

Harris

Expert
Licensed User
Longtime User
page.ShowModalSheetAbsolute("tiShiftDetail", "2%", "2%", "96%", "95%")
Seems that this method uses the parent screen's top for its position. If the underlying screen from which this is called, is scrolled down many rows, the result is the second screen shot.

Using - ABMGentiShiftModal.Size = ABM.MODALSHEET_SIZE_FULL will always place the modal sheet full window regardless of where the parent form's top position is.

Thanks

veiw1.png



Scrolled down since it is respecting the parent form's top - not the screen top.

view2.png
 

Harris

Expert
Licensed User
Longtime User
The normal ModalSheet() shouldn't. (and it doesn't according to my test, but correct me if you found a case where it does).

But both ShowModalRelativeCell() and ShowModalRelativeComponent() should as they have to appear relative to the scrolled cell/component (e.g. as a 'combobox' behaviour).

Correct... I was looking at sheets built with ShowModalSheetAbsolute... and thing they were ShowModalSheet() Sorry.
 
Upvote 0
Top