<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>20442</bug_id>
          
          <creation_ts>2008-08-18 17:56:34 -0700</creation_ts>
          <short_desc>REGRESSION (r29039): Scrollbar clipped passed visible region with fckeditor</short_desc>
          <delta_ts>2008-08-22 00:12:44 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Layout and Rendering</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc>http://www.fckeditor.net/demo</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>NeedsReduction, Regression</keywords>
          <priority>P1</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>9915</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexander Mohr">amohr</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>chrisb</cc>
    
    <cc>ddkilzer</cc>
    
    <cc>webkit</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>88786</commentid>
    <comment_count>0</comment_count>
    <who name="Alexander Mohr">amohr</who>
    <bug_when>2008-08-18 17:56:34 -0700</bug_when>
    <thetext>If you go to the editor area you&apos;ll first notice that the bottom line is clipped.  Next, if you hit return a few times with the cursor in the editable area you&apos;ll note that the scrollbar pops up clipped.

This worked correctly in Safari 3.0.4 and broke starting with Safari 3.1.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88795</commentid>
    <comment_count>1</comment_count>
    <who name="Alexander Mohr">amohr</who>
    <bug_when>2008-08-18 20:53:31 -0700</bug_when>
    <thetext>I&apos;ve narrowed it down to happening somewhere between builds 28899 and 29350, but I&apos;m blocked for narrowing it down further due to bug# 16804 :(</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88839</commentid>
    <comment_count>2</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2008-08-19 12:51:18 -0700</bug_when>
    <thetext>Confirmed.  A reduction of the HTML involved would be very useful.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88864</commentid>
    <comment_count>3</comment_count>
    <who name="Alexander Mohr">amohr</who>
    <bug_when>2008-08-19 16:23:26 -0700</bug_when>
    <thetext>ok, after much build pain I found the change that causes this bug: 29039</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88877</commentid>
    <comment_count>4</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2008-08-19 17:15:05 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; ok, after much build pain I found the change that causes this bug: 29039

This was a fix for Bug 15359.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88979</commentid>
    <comment_count>5</comment_count>
      <attachid>22913</attachid>
    <who name="Alexander Mohr">amohr</who>
    <bug_when>2008-08-20 18:05:38 -0700</bug_when>
    <thetext>Created attachment 22913
Outer Frame</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88980</commentid>
    <comment_count>6</comment_count>
      <attachid>22914</attachid>
    <who name="Alexander Mohr">amohr</who>
    <bug_when>2008-08-20 18:06:12 -0700</bug_when>
    <thetext>Created attachment 22914
Middle Frame</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88981</commentid>
    <comment_count>7</comment_count>
      <attachid>22915</attachid>
    <who name="Alexander Mohr">amohr</who>
    <bug_when>2008-08-20 18:06:25 -0700</bug_when>
    <thetext>Created attachment 22915
Inner Frame</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88982</commentid>
    <comment_count>8</comment_count>
      <attachid>22913</attachid>
    <who name="Alexander Mohr">amohr</who>
    <bug_when>2008-08-20 18:08:30 -0700</bug_when>
    <thetext>Comment on attachment 22913
Outer Frame

&gt;&lt;HTML style=&quot;border: thin solid blue; margin: 5px;&quot;&gt;&lt;HEAD&gt;
&gt;
&gt;&lt;SCRIPT&gt;
&gt;	function setHeight(str)
&gt;	{
&gt;		var iframe = document.getElementById(&apos;FCKeditor1___Frame&apos;);
&gt;		var iframeDoc = iframe.contentDocument;
&gt;		var iframeElement = iframeDoc.getElementById(&apos;foo&apos;);
&gt;		iframeElement.style.height=str;
&gt;	}
&gt;&lt;/SCRIPT&gt;
&gt;&lt;/HEAD&gt;&lt;BODY&gt;
&gt;&lt;BUTTON onmousedown=&quot;javascript:setHeight(&apos;100%&apos;)&quot; type=&quot;button&quot;&gt;100% height&lt;/BUTTON&gt;
&gt;&lt;BUTTON onmousedown=&quot;javascript:setHeight(&apos;75px&apos;)&quot; type=&quot;button&quot;&gt;75 height&lt;/BUTTON&gt;
&gt;&lt;TABLE width=&quot;100%&quot; style=&quot;margin: 0pt;&quot;&gt;
&gt;&lt;TBODY&gt;
&gt;&lt;TR&gt;&lt;TD&gt;
&gt;&lt;DIV&gt;
&gt;    &lt;IFRAME scrolling=&quot;no&quot; style=&quot;border: thin solid blue; margin: 5px; width: 100%; height: 200px;&quot; src=&quot;attachment.cgi?id=22914&quot; id=&quot;FCKeditor1___Frame&quot;&gt;
&gt;&amp;lt;/div&amp;gt;
&gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;
&gt;&amp;lt;/tbody&amp;gt;	
&gt;&amp;lt;/table&amp;gt;
&gt;&amp;lt;/body&amp;gt;
&gt;&amp;lt;/html&amp;gt;&lt;/IFRAME&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88984</commentid>
    <comment_count>9</comment_count>
    <who name="Alexander Mohr">amohr</who>
    <bug_when>2008-08-20 18:42:10 -0700</bug_when>
    <thetext>(In reply to comment #8)
&gt; (From update of attachment 22913 [edit])

my inline html editing skills on this site seem to be lacking ;)  In any case, I&apos;ve attached a testcase which I believe reproduces the source of the problem.  I&apos;ve structure the tree test files to have a separate color for each file.  Furthermore, if the document has an iframe it gets another border with the same color.

You&apos;ll note when opening the outer html, that the inner html&apos;s document&apos;s height is more that what is needed for the document (instead, set to it&apos;s intrinsic height) when the owner iframe was set to 100% height.

It goes like this:

Outer HTML-&gt;IFrame (200px height)-&gt;TR/TD(74px)+TR/TD/IFrame (100% height)

I believe the expectation is that the IFrame would get sized to the remainder (200-borders/margins-74px) and not the intrinsic height.  If you compare the behavior with firefox it seems firefox does not set the inner html size to it&apos;s container&apos;s iframe size, instead it gets set to the content size.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89078</commentid>
    <comment_count>10</comment_count>
    <who name="">webkit</who>
    <bug_when>2008-08-22 00:07:26 -0700</bug_when>
    <thetext>We have also noted this issue recently. The strange fact is that it happens
only if the editor has a reduced size (default btw). For example, you will
reproduce the problem here:

http://www.fckeditor.net/nightly/fckeditor/_samples/html/sample02.html

But it will work well in this other sample instead:

http://www.fckeditor.net/nightly/fckeditor/_samples/html/sample01.html

Looking at the DOM with the Web Inspector, the only differences between
sample01 and sample02, are the &quot;width&quot; attribute and style values for the
outer iframe that holds the editor. The first is set to 300/300px, while we
have 200/200px at the other. All the rest, including the inner tables and
iframes have the same sizes (mostly 100% height in the inner stuff).

It sounds like WebKit is forcing the inner iframe having a minimum height of
exactly 150px (the computed style for the inner iframe in the Web
Inspector).</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>22913</attachid>
            <date>2008-08-20 18:05:38 -0700</date>
            <delta_ts>2008-08-20 18:05:38 -0700</delta_ts>
            <desc>Outer Frame</desc>
            <filename>outer-outer-frame.html</filename>
            <type>text/html</type>
            <size>773</size>
            <attacher name="Alexander Mohr">amohr</attacher>
            
              <data encoding="base64">PGh0bWwgc3R5bGU9ImJvcmRlcjogdGhpbiBzb2xpZCBibHVlOyBtYXJnaW46IDVweDsiPg0KPGhl
YWQ+DQo8c2NyaXB0Pg0KCWZ1bmN0aW9uIHNldEhlaWdodChzdHIpDQoJew0KCQl2YXIgaWZyYW1l
ID0gZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoJ0ZDS2VkaXRvcjFfX19GcmFtZScpOw0KCQl2YXIg
aWZyYW1lRG9jID0gaWZyYW1lLmNvbnRlbnREb2N1bWVudDsNCgkJdmFyIGlmcmFtZUVsZW1lbnQg
PSBpZnJhbWVEb2MuZ2V0RWxlbWVudEJ5SWQoJ2ZvbycpOw0KCQlpZnJhbWVFbGVtZW50LnN0eWxl
LmhlaWdodD1zdHI7DQoJfQ0KPC9zY3JpcHQ+DQo8L2hlYWQ+DQo8Ym9keT4NCjxidXR0b24gdHlw
ZT0iYnV0dG9uIiBvbm1vdXNlZG93bj0iamF2YXNjcmlwdDpzZXRIZWlnaHQoJzEwMCUnKSI+MTAw
JSBoZWlnaHQ8L2J1dHRvbj4NCjxidXR0b24gdHlwZT0iYnV0dG9uIiBvbm1vdXNlZG93bj0iamF2
YXNjcmlwdDpzZXRIZWlnaHQoJzc1cHgnKSI+NzUgaGVpZ2h0PC9idXR0b24+DQo8dGFibGUgd2lk
dGg9IjEwMCUiIHN0eWxlPSdtYXJnaW46MCc+DQo8dGJvZHk+DQo8dHI+PHRkPg0KPGRpdj4NCiAg
ICA8aWZyYW1lIGlkPSJGQ0tlZGl0b3IxX19fRnJhbWUiIHNyYz0ib3V0ZXItZnJhbWUuaHRtbCIg
c2Nyb2xsaW5nPSJubyIgc3R5bGU9IndpZHRoOjEwMCU7IGhlaWdodDoyMDBweDsgYm9yZGVyOiB0
aGluIHNvbGlkIGJsdWU7IG1hcmdpbjogNXB4OyI+DQo8L2Rpdj4NCjwvdGQ+PC90cj4NCjwvdGJv
ZHk+CQ0KPC90YWJsZT4NCjwvYm9keT4NCjwvaHRtbD4=
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>22914</attachid>
            <date>2008-08-20 18:06:12 -0700</date>
            <delta_ts>2008-08-20 18:06:12 -0700</delta_ts>
            <desc>Middle Frame</desc>
            <filename>outer-frame.html</filename>
            <type>text/html</type>
            <size>379</size>
            <attacher name="Alexander Mohr">amohr</attacher>
            
              <data encoding="base64">PGh0bWwgc3R5bGU9ImJvcmRlcjogdGhpbiBzb2xpZCByZWQ7IG1hcmdpbjogNXB4OyI+DQo8aGVh
ZD48L2hlYWQ+DQo8Ym9keT4NCjx0YWJsZSBzdHlsZT0id2lkdGg6IDEwMCUiPg0KCTx0Ym9keT4N
Cgk8dHIgPg0KCQk8dGQgc3R5bGU9ImhlaWdodDo3NHB4Ij50b29sIGJhciBoZXJlPC90ZD4NCgk8
L3RyPg0KCTx0cj4NCiAgICAgICAgPHRkPg0KICAgICAgICAgICAgPGlmcmFtZSBpZD0iZm9vIiBz
dHlsZT0iaGVpZ2h0OiAxMDAlOyB3aWR0aDoxMDAlOyBib3JkZXI6IHRoaW4gc29saWQgcmVkOyBt
YXJnaW46IDVweDsiIHNyYz0iaW5uZXItZnJhbWUuaHRtbCI+DQoJCTwvdGQ+DQoJPC90cj4NCgk8
L3Rib2R5Pg0KPC90YWJsZT4NCjwvYm9keT4NCjwvaHRtbD4NCg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>22915</attachid>
            <date>2008-08-20 18:06:25 -0700</date>
            <delta_ts>2008-08-20 18:06:25 -0700</delta_ts>
            <desc>Inner Frame</desc>
            <filename>inner-frame.html</filename>
            <type>text/html</type>
            <size>241</size>
            <attacher name="Alexander Mohr">amohr</attacher>
            
              <data encoding="base64">PGh0bWwgc3R5bGU9ImJvcmRlcjogdGhpbiBzb2xpZCBncmVlbjsgcGFkZGluZzogMHB4OyBtYXJn
aW46IDVweDsiPg0KPGhlYWQ+DQo8c2NyaXB0Pg0KZG9jdW1lbnQuZGVzaWduTW9kZSA9ICJvbiI7
DQo8L3NjcmlwdD4NCjwvaGVhZD4NCjxib2R5IGlkPSJ0aGVib2R5IiBkaXI9Imx0ciI+DQoJVGhp
cyBpcyBzb21lIDxzdHJvbmc+IHNhbXBsZSB0ZXh0PC9zdHJvbmc+Ljxicj48YnI+PGJyPg0KPC9i
b2R5Pg0KPC9odG1sPg==
</data>

          </attachment>
      

    </bug>

</bugzilla>