Embedded View and height fit to window fix

Every now and then I had this problem of using an embedded view on a form and using the view applet that if you set the height to “fit to window” Notes would not take into account the action bar and the horizontal scroll bar would fall off the bottom. My simple fix is to just include “BOTTOMMARGIN="34"” in the HTML Body Attributes of the form. That will stop the embedded view from falling off the bottom. You will need to adjust the margin value to fit your specific needs. Just thought I would throw this out here because I have seen alot of people asking how to do this.

Subject: Thanks for posting the fix… it works great!

Subject: Embedded View and height fit to window fix

Actually, this is what worked for me…

style=“margin-bottom:100px;”

in the HTML Body Attributes of the form.

Subject: RE: Embedded View and height fit to window fix

A good CSS alternative. At the time I had some older browser to support but this should be the approach these days, although 100px was a bit too much for me - adjust to taste.

If the “view” is in a Notes Frame or DIV you can set the Frame / DIV to not scroll to get rid of the annoying Frame vertical scroll bar, since the applet provides its own. Otherwise it will still want to let you scroll to the empty space at the bottom.