Extra space or padding appears between the MDI client area and the application toolbar in the Web application.
Cause: Incorrect calculation of the MDI client area size during the application deployment will cause extra spaces or add padding between the MDI client area and the application toolbar in the Web application.
Solution: Modify the X, Y and Height property for the MDI window and the controls in the MDI window by following the steps below:
Step 1: Estimate the height in PowerBuilder units, for example, 400 PowerBuilder units.
Step 2: Add the following script in the resize event:
String ls1, ls2 Long ll_rate Setnull(ls1) Setnull(ls2) If ls1 = ls2 then //In JavaScript, ls1 equals to ls2 ll_rate = 400 else ll_rate = 0 //In PowerScript, ls1 does not equal to ls2 end if
Step 3: Edit additional scripts in the resize event to:
-
Subtract the ll_rate value from the Y property of the MDI window.
-
Add the ll_rate value to the Height property of the MDI window.
-
Subtract the ll_rate value from the Y property of the controls in the MDI window.
-
Assign the Height property of the MDI window to the controls that will have the same height as the MDI.
Long ll_rate ll_rate = Y ll_rate = ll_rate + height window activesheet activesheet = GetActiveSheet ( ) activesheet.y = ll_rate