cancel
Showing results for 
Search instead for 
Did you mean: 

How to set IWDWindow setWindowSize using WDCssSize?

Former Member
0 Kudos

Hi,

I need to use IWDWindow setWindowSize(WDCssSize width, WDCssSize height) method. But I do not know hot to create

width and height of type WDCssSize.

Any suggestions will be appreciated:)

Thanks

Cheers,

Jeny

Accepted Solutions (1)

Accepted Solutions (1)

lajitha_menon
Contributor
0 Kudos

Hi there,

Try this

WDCssSize width = new WDCssSize(300, WDWindowUnitOfLength.PX);//300 pixels

WDCssSize height = new WDCssSize(200, WDWindowUnitOfLength.EX);//200 characters

Now you can use width and height to set the size.

Just curious- you can use the straight forward method like this

window.setWindowSize(300, 230); //width,height

Why do you want to use WDCsssize ?

Regards,

LM

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Actually I posted another topic which is a kind of answer to your question: 'How to change a modal window size to fit into an arbitrary browser size'

I hoped that WDCssSize might help, but obviously I was wrong:(

Thanks for the reply

Regards,

Jeny