SIze of screen [message #1808116] |
Mon, 17 June 2019 15:26  |
Eclipse User |
|
|
|
Hi
Can I get info about size of window of browser before generate first composite?
Dmitry
|
|
|
|
|
Re: SIze of screen [message #1808212 is a reply to message #1808199] |
Wed, 19 June 2019 11:30   |
Eclipse User |
|
|
|
Hi,
if you call this when the display is created (in the initial UI request) it will be zero as client (browser) didn't send it to the server yet. You also need a SWT.Resize listener attached to display.
HTH,
Ivan
|
|
|
Re: SIze of screen [message #1808308 is a reply to message #1808212] |
Fri, 21 June 2019 09:37  |
Eclipse User |
|
|
|
You should probably also look at the width property, not the x property.
x and y will always be zero, they're only relevant for multi-monitor scenarios on a desktop. RAP emulates a single monitor environment. Width and height is what you need.
|
|
|
Powered by
FUDForum. Page generated in 0.02891 seconds