Forum Stats

  • 3,839,012 Users
  • 2,262,438 Discussions
  • 7,900,836 Comments

Discussions

Region: height = 100%

tdobe
tdobe Member Posts: 185 Blue Ribbon
edited Jul 31, 2019 2:59PM in APEX Discussions

Can it be done so that the region, for example, IG in the scrolling mode occupied 100% or e.g. 50% of the screen height?

thx;)

Tagged:

Answers

  • mbouchi
    mbouchi Member Posts: 93 Red Ribbon
    edited Jul 31, 2019 3:55AM
    tdobe wrote:Can it be done so that the region, for example, IG in the scrolling mode occupied 100% or e.g. 50% of the screen height?thx;)

    In order for a percentage value to work for height, the parent's height must be determined, so need to give a height for all the parents of your IG region starting with html tag.

  • tdobe
    tdobe Member Posts: 185 Blue Ribbon
    edited Jul 31, 2019 4:59AM

    I could not check it out. Why did not they just do that in place of the number of pixels you can not enter an item that contains the value in pixels ...; (

  • tdobe
    tdobe Member Posts: 185 Blue Ribbon
    edited Jul 31, 2019 2:59PM

    I found a working solution:

    how to do it:

    • create text field item on your page  for my use case "P1_HEIGHT"
    • give an ID to your IG region for my use- case  "max"
    • create a button with a click dynamic action with true action execute Javascript code.

    use the code bellow:

    $('#max_ig').css({"max-height":+$v("P1_HEIGHT")+"px"});

    you will then be able to set the Fixed report height from the APP itself.

    tdobe