[TYPO3-core] RFC: #7820: Task center iframes are only sized on load
Steffen Kamper
steffen at sk-typo3.de
Tue Mar 11 18:12:28 CET 2008
Hi,
this is a SVN patch request.
Type: Bugfix
Branches: 4_2
Bugtracker Reference:
http://bugs.typo3.org/view.php?id=7820
http://bugs.typo3.org/view.php?id=7291
Problem:
Within the task center, iframes are used to include external content such as
a TCE form for editing records as part of sys_action. These iframes have an
onload attribute to set the height of the form, but this event handler could
be improved.
Other iframes within the new backend are automatically resized when the
browser window is resized (via Prototype event handlers) so the task center
should get this same behavior.
Solution:
I used prototype to calc the right height (former method failed in IE)
Additionally i added a resize-handler. I'd exclude IE6 because the handler
crashes IE6, problem seem the other resizehandlers (i counted 3)
Remark:
Former method used to parameters: frame and max. Both are not needed now.
The frame is fetched with the id and max is ignored as it ever uses complete
height of the doc for the iframe (i only saw a difference of 30 pixels
before)
vg Steffen
vg Steffen
begin 666 7820_user_taskcenter_calcHeight2.diff
M26YD97 at Z('1Y<&\S+W-Y<V5X="]T87-K8V5N=&5R+W1A<VLO8VQA<W,N;6]D
M7W5S97)?=&%S:RYP:' -"CT]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]
M/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T-"BTM+2!T
M>7!O,R]S>7-E>'0O=&%S:V-E;G1E<B]T87-K+V-L87-S+FUO9%]U<V5R7W1A
M<VLN<&AP"2AR979I<VEO;B S-# U*0T**RLK('1Y<&\S+W-Y<V5X="]T87-K
M8V5N=&5R+W1A<VLO8VQA<W,N;6]D7W5S97)?=&%S:RYP:' )*'=O<FMI;F<@
M8V]P>2D-"D! ("TR,#$L-R K,C Q+#<@0$ -"B )("H at 0')E='5R;@ES=')I
M;F<)"6-O9&4@=&AA="!I;G-E<G1S('1H92!I9G)A;64@*$A434PI"B )("HO
M"B )9G5N8W1I;VX@=7)L26Y)9G)A;64H)'5R;"PD;6%X/3 I('L*+0D)<F5T
M=7)N("<\:69R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@)"AP87)E;G0I+F=E=$AE:6=H="@I.PHK
M"0D))"@B;&ES=%]F<F%M92(I+G-E=%-T>6QE*'MH96EG:'0Z('!(96EG:'0K
M(G!X(GTI.PHK"0D)"B )"7T**PD)+R\@979E;G0 at 8W)A<VAE<R!)138@<V\@
M:&4@:7, at 97AC;'5D960 at 9FER<W0**PD)+R]43T1/.B!U<V4 at 82!C96YT<F%L
M(&AA;F1L97(@:6YS=&5A9"!O9B!M=6QT:7!L92!S:6YG;&4@;VYE<PHK"0EI
M9B H(2]-4TE%(#8O+G1E<W0H;F%V:6=A=&]R+G5S97)!9V5N="DI('L**PD)
M"45V96YT+F]B<V5R=F4H=VEN9&]W+" B<F5S:7IE(BP@<F5S:7IE269R86UE
M+"!F86QS92D["BL)"7T*(#PO<V-R:7!T/B<["B *( D)+RH at 8V%L;"!G971-
M86EN0V]N=&5N="!F:7)S="P at 8F5C875S92!W:&%T(&AA<'!E;G,@:&5R92!M
;:6=H="!A9F9E8W0@;&5F=$-O;G1E;G0@*B\*
`
end
More information about the TYPO3-team-core
mailing list