PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.info.authoring.html > Frameset -> Page -> IFrame -> Frameset ...issue with scroll bars (Twoissues)
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Frameset -> Page -> IFrame -> Frameset ...issue with scroll bars (Twoissues)

Réponse
 
LinkBack Outils de la discussion
Vieux 04/04/2008, 23h45   #1 (permalink)
Berlin Brown
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Frameset -> Page -> IFrame -> Frameset ...issue with scroll bars (Twoissues)

Issue Number One (content and scrollbar height are overflowing past
the page):

Frameset -> Page -> IFrame -> Frameset ...issue with scroll bars

This is my layout.

I have a page (homepage) within in a Frame<*,0>. Hidden frame is 0.

This homepage contains an iframe (called bottom).

The iframe href and by default contains a blank page, is set by
javascript (onload: bottom.document.location = "http://
www.google.com")

The iframe normally contains frameset page (leftnav and body content).

------

Here is the question. There is an issue with the bottom iframe.

The body content seems to overflow past the bottom of the status bar
by about 100 pixels. For example, if you scroll to the bottom, it
looks like there are about 30 pixels overflowing past the status bar.
That right vertical scroll bar gets clipped.

I know what the issue is. The "homepage" contains a navigation menu
system. It is about 70-100 pixels in height. This is pushing down
the iframe. So, now the iframe is 70 pixels to large.

** Possible Solutions with Issue Number 1.
1. Calculate the exact pixel height of bottom iframe and subtract
about 70 pixels from the height so that it all fits in the screen.

I hate to do this because I know that the calculations will be off if
the user resizes. For example.:

var s1 = screen.availHeight
bottom.height = s1 - 70;

I also tried a percentage.

bottom.height = "90%";

These are ok, but it never looks right. There is either some
whitespace under where the scrollbar is or the scroll bar overflows
beyond where the status bar is.

** Possible Solution Number 2

1. Play with the margin-bottom so that the iframe gets pushed up so
that the scroll bar is fully visible.

I tried this, but margin-bottom seems to be ignored by IE and firefox
if the margin is not visible? E.g. because the page overflows past
the bottom of the screen, I guess these browser dont' worry about the
margin-bottom because there isn't one visible?

***
*** Issue number 2
***

With the same layout described above. It looks like the iframe
disappears when you tab at that particular iframe. If I tab into the
iframe, the iframe content is only visible and then if tab out of the
iframe, the rest of the page is visible again.

So, it looks like the outside page (homepage) disappears.

***
*** Pseudo code
***

Homepage:
<div>
Navigation menu
</div>
<div>
</div>
<div style="width:auto; height:auto;">
<iframe src="empty" id="thebottom" name="thebottom" scrolling="auto"
frameborder="0" width="100%" height="100%"></iframe>
</div>
</div>

I wonder if this is because I have height=100%?
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 16h23.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,07614 seconds with 9 queries