Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #33373
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: Instead of <iframe onload=... |
| Date | 2017-05-23 18:41 +0200 |
| Organization | PointedEars Software (PES) |
| Message-ID | <3046559.QJadu78ljV@PointedEars.de> (permalink) |
| References | (10 earlier) <ofug0n$eme$1@news.albasani.net> <9131635.nUPlyArG6x@PointedEars.de> <ofv3ap$472$1@news.albasani.net> <1572459.VLH7GnMWUR@PointedEars.de> <og1f25$e7k$1@news.albasani.net> |
Stefan Weiss wrote:
> Thomas 'PointedEars' Lahn wrote:
>> Stefan Weiss wrote:
>>> You don't want to say what exactly it is you're disagreeing with,
>> No, because *you* made the claim; *you* carry the burden of proof. This
>> is a core principle of a *constructive* discussion, and I find it hard to
>> understand why you find that so hard to understand.
>
> This is how this thread presents itself to me (paraphrased):
>
> JS: (A) Sometimes, an iFrame appears further down the document than
^^^^^^
> intended, when two are adjacent.
^^^^^^^^
> (B) iFrame has a minimum height
>
> SW: (C) No minimum height for iframes.
> (D) Use display:block.
>
> TL: C is right, D is unnecessary.
>
> SW: D actually refers to A and can fix it.
>
> TL: Wrooong, but I'm not telling why.
Straw man. That is _not_ what I said in that follow-up. Not even remotely.
> I only have to find one single situation where (D) solves (A).
Before one suggests a solution D for a problem A, one must first properly
identify the problem A. Otherwise D can fall short of solving A and can
even introduce more problems.
From your answer one can see that you assume that problem A is that there
are *consecutive* *iframe elements in the source code* *formatted to 100 %
width* so that they are vertically arranged. For that case I concur:
Setting “display: block” on those iframe elements (setting it on the first
iframe element suffices) apparently solves the problem of *vertical* spacing
between the “IFrames” (if the margins are 0) *and* has no obvious side
effects.
But the OP said “adjacent iFrame”; that can be interpreted in other ways,
too.
I still think the most straightforward interpretation here is the
*rendering*, _not_ the source code. Because the OP was referring to
“adjacent IFrames”, not “consecutive iframe elements”.
So it would be equally possible that the “IFrames” are supposed to appear
*next to each other* and that this sometimes does not happen. Setting
“display: block” on any iframe element then has the disadvantage that the
iframes are arranged vertically, which might not be what is wanted.
There is a general solution that addresses both interpretations:
Set “display: block” *and* “float: left”. One might even need to set the
“width” property explicitly.
I can see now that the OP sets “width: 100%” on some of their dynamically
inserted iframes. This gives support to, but does not necessitate, your
interpretation that *all* iframes are to be arranged vertically, and your
idea that “display: block” would solve the spacing problem without side
effect.
--
PointedEars
FAQ: <http://PointedEars.de/faq> | <http://PointedEars.de/es-matrix>
<https://github.com/PointedEars> | <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Instead of iframe onload? Dr J R Stockton <J.R.Stockton@physics.org> - 2017-05-18 05:40 -0700
Re: Instead of iframe onload? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-05-18 15:07 +0200
Re: Instead of iframe onload? Dr J R Stockton <J.R.Stockton@physics.org> - 2017-05-18 08:11 -0700
Re: Instead of iframe onload? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-05-18 18:09 +0200
Re: Instead of iframe onload? Andrew Poulos <ap_prog@hotmail.com> - 2017-05-19 12:36 +1000
Re: Instead of iframe onload? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-05-19 09:15 +0200
Re: Instead of iframe onload? Andrew Poulos <ap_prog@hotmail.com> - 2017-05-19 18:12 +1000
Re: Instead of iframe onload? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-05-19 11:47 +0200
Re: Instead of iframe onload? Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2017-05-19 02:44 -0700
Re: Instead of iframe onload? Martin Honnen <martin.honnen@gmx.de> - 2017-05-19 15:25 +0200
Re: Instead of iframe onload? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-05-19 18:11 +0200
Re: Instead of iframe onload? Dr J R Stockton <J.R.Stockton@physics.org> - 2017-05-19 14:30 -0700
Instead of <iframe onload=... Dr J R Stockton <reply1700@merlyn.demon.co.uk.invalid> - 2017-05-20 22:15 +0100
Re: Instead of <iframe onload=... Stefan Weiss <krewecherl@gmail.com> - 2017-05-21 02:10 +0200
Re: Instead of <iframe onload=... Dr J R Stockton <J.R.Stockton@physics.org> - 2017-05-21 11:46 -0700
Re: Instead of <iframe onload=... Dr J R Stockton <reply1700@merlyn.demon.co.uk.invalid> - 2017-05-24 23:18 +0100
Re: Instead of <iframe onload=... Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-05-21 23:22 +0200
Re: Instead of <iframe onload=... Stefan Weiss <krewecherl@gmail.com> - 2017-05-22 00:39 +0200
Re: Instead of <iframe onload=... Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-05-22 01:38 +0200
Re: Instead of <iframe onload=... Stefan Weiss <krewecherl@gmail.com> - 2017-05-22 02:19 +0200
Re: Instead of <iframe onload=... Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-05-22 02:35 +0200
Re: Instead of <iframe onload=... Stefan Weiss <krewecherl@gmail.com> - 2017-05-22 12:54 +0200
Re: Instead of <iframe onload=... Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-05-22 15:37 +0200
Re: Instead of <iframe onload=... Stefan Weiss <krewecherl@gmail.com> - 2017-05-22 18:23 +0200
Re: Instead of <iframe onload=... Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-05-23 14:15 +0200
Re: Instead of <iframe onload=... Stefan Weiss <krewecherl@gmail.com> - 2017-05-23 15:56 +0200
Re: Instead of <iframe onload=... Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-05-23 18:41 +0200
Re: Instead of <iframe onload=... Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-05-22 03:27 +0200
csiph-web