cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamically set the size of the VIEW

Former Member
0 Kudos

Hello,

I am looking to set the size of my VIEW which is called in following way:

IF iv_show_in_pop_up EQ abap_true.

wd_this->raise_simulation_pop_up( ).

  • I want to set of the size of the VIEW if it a pop-up.

ENDIF.

How can i get access to the view and set the size. Please Help.

Regards,

Piyush

Accepted Solutions (0)

Answers (1)

Answers (1)

uday_gubbala2
Active Contributor
0 Kudos

Hi Piyush,

Check what Anzy has to say in [here|https://forums.sdn.sap.com/click.jspa?searchID=18635339&messageID=3289078]:

"You have to go to specific view , which will be embedded in the pop up window.In the view go to ROOTUIELEMENTCONTAINER and set the width and height.This way you can restrict the size of the pop up window."

This is [another approach|https://forums.sdn.sap.com/click.jspa?searchID=18635339&messageID=5836334] suggested by Abhimanyu Lagishetty for dynamically setting the size of your window:

"Pass the URL like this to the create_external_window

javascript:window.moveTo(0,0);window.resizeTo(screen.width,screen.height);window.location.href="http://google.co.in";

Instead of http://google.co.in write your URL it will maximize the window"

Regards,

Uday